aboutsummaryrefslogtreecommitdiffstats
path: root/packages/torouter-web/src/tui/utils
diff options
context:
space:
mode:
Diffstat (limited to 'packages/torouter-web/src/tui/utils')
-rw-r--r--packages/torouter-web/src/tui/utils/fileio.py4
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')