summaryrefslogtreecommitdiff
path: root/yaksh/file_utils.py
diff options
context:
space:
mode:
authorKing2018-07-12 13:01:00 -0700
committerGitHub2018-07-12 13:01:00 -0700
commitf61742f04f417cfb60576f9904afd0dc5c537b3c (patch)
treeffb6fe127dde126e1ee88852c137895de754708f /yaksh/file_utils.py
parent3d9b15c8f8df3c313045cc32f6d4aefaec6f378f (diff)
parent70839496c9e3151f59152498dbca0a3d787bdff2 (diff)
downloadonline_test-f61742f04f417cfb60576f9904afd0dc5c537b3c.tar.gz
online_test-f61742f04f417cfb60576f9904afd0dc5c537b3c.tar.bz2
online_test-f61742f04f417cfb60576f9904afd0dc5c537b3c.zip
Merge pull request #496 from maheshgudi/questions_yaml
Question upload can take yaml and zip files
Diffstat (limited to 'yaksh/file_utils.py')
-rw-r--r--yaksh/file_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/file_utils.py b/yaksh/file_utils.py
index 88fc46d..1dc6006 100644
--- a/yaksh/file_utils.py
+++ b/yaksh/file_utils.py
@@ -47,7 +47,7 @@ def extract_files(zip_file, path=None):
if path:
extract_path = path
else:
- extract_path = tempfile.gettempdir()
+ extract_path = tempfile.mkdtemp()
zip_file.extractall(extract_path)
zip_file.close()
return zfiles, extract_path