From: Jorge Gorbe Moya Date: Fri, 27 Jun 2008 15:02:15 +0000 (+0200) Subject: use an even older version of mktemp X-Git-Url: http://slack.codemaniacs.com/git/?a=commitdiff_plain;h=6fc5b27f7ff56afb95c85dd9be266de894222932;p=melon.git use an even older version of mktemp --- diff --git a/melon-watch-dir.py b/melon-watch-dir.py index 9c4edcd..45a9420 100755 --- a/melon-watch-dir.py +++ b/melon-watch-dir.py @@ -15,7 +15,7 @@ hostname = os.uname()[1] if "NamedTemporaryFile" in dir(tempfile): outfile=tempfile.NamedTemporaryFile("w+b",-1,".melon","log-",dst_dirname) else: - outfile=file(tempfile.mktemp(".melon", "log-", dst_dirname), "w+b", 0) + outfile=file(dst_dirname + os.sep + tempfile.mktemp(".melon"), "w+b", 0) old_count = -1 count = len(os.listdir(dirname))