From af763eeb133509efff4d72c9d040526291022a4a Mon Sep 17 00:00:00 2001 From: Joey Payne Date: Thu, 3 Apr 2014 17:44:36 -0600 Subject: [PATCH] Fixed an issue with the temporary directory not being accessible in windows for some users. --- utils.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/utils.py b/utils.py index 96c0162..ab32ce0 100644 --- a/utils.py +++ b/utils.py @@ -1,6 +1,6 @@ from __future__ import print_function import os, zipfile, io, platform -import sys +import sys, tempfile DEBUG = False @@ -8,11 +8,7 @@ def is_windows(): return platform.system() == 'Windows' def get_temp_dir(): - if is_windows(): - temp_dir = os.path.join('c:/','windows','temp') - else: - temp_dir = os.path.sep+'tmp' - return temp_dir + return tempfile.gettempdir() def log(*args): if DEBUG: