projects
/
melon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cf7d75
)
use an even older version of mktemp
author
Jorge Gorbe Moya
<jgorbe@dsic.upv.es>
Fri, 27 Jun 2008 15:02:15 +0000
(17:02 +0200)
committer
Jorge Gorbe Moya
<jgorbe@dsic.upv.es>
Fri, 27 Jun 2008 15:02:15 +0000
(17:02 +0200)
melon-watch-dir.py
patch
|
blob
|
history
diff --git
a/melon-watch-dir.py
b/melon-watch-dir.py
index 9c4edcdeb0a90d432e32eaebf9ca2adcd66484e2..45a9420e7a27ceee05453f562d35f5a1dca752d9 100755
(executable)
--- 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))