diff options
author | Arturo FilastoĢ <hellais@torproject.org> | 2011-08-19 17:33:58 +0200 |
---|---|---|
committer | Arturo FilastoĢ <hellais@torproject.org> | 2011-08-19 17:33:58 +0200 |
commit | fe239d1d9e8a590798abc31cd7bf7cf11324cfd5 (patch) | |
tree | 6c018a1de645d41a7116629242e76583128f1255 /packages/torouter-web/src/tui/utils | |
parent | 73b830c7244046c4d1a9b32004a6ec18afd99d92 (diff) | |
download | torouter-fe239d1d9e8a590798abc31cd7bf7cf11324cfd5.tar.gz torouter-fe239d1d9e8a590798abc31cd7bf7cf11324cfd5.zip |
Use correct tmp filenames and paths
Diffstat (limited to 'packages/torouter-web/src/tui/utils')
-rw-r--r-- | packages/torouter-web/src/tui/utils/fileio.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/torouter-web/src/tui/utils/fileio.py b/packages/torouter-web/src/tui/utils/fileio.py index 5b88504..c6574b7 100644 --- a/packages/torouter-web/src/tui/utils/fileio.py +++ b/packages/torouter-web/src/tui/utils/fileio.py @@ -1,12 +1,12 @@ import os def write(files): - tmp_dir = "/var/tmp/tor-tui" + tmp_dir = "/var/tmp/tor-tui/" tmpfiles = [] for file in files: if not os.path.exists(tmp_dir): os.mkdir(tmp_dir) - tmpfile = tmp_dir + file[0].split("/")[-1:][0] + ".tmp" + tmpfile = tmp_dir + file[0].split("/")[-1:][0] tmpfiles.append((tmpfile,file[0])) # open the tmp file for write f = open(tmpfile, 'w') |