diff options
author | King | 2018-07-12 13:01:00 -0700 |
---|---|---|
committer | GitHub | 2018-07-12 13:01:00 -0700 |
commit | f61742f04f417cfb60576f9904afd0dc5c537b3c (patch) | |
tree | ffb6fe127dde126e1ee88852c137895de754708f /yaksh/file_utils.py | |
parent | 3d9b15c8f8df3c313045cc32f6d4aefaec6f378f (diff) | |
parent | 70839496c9e3151f59152498dbca0a3d787bdff2 (diff) | |
download | online_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.py | 2 |
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 |