From d16212387c8b2bfddaaef0bb2d0115143447aa5d Mon Sep 17 00:00:00 2001 From: Joey Payne Date: Fri, 4 Apr 2014 10:00:50 -0600 Subject: [PATCH] Fixed a 'file does not exist' that happens sometimes. --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 3540eaf..08b1ab6 100644 --- a/main.py +++ b/main.py @@ -391,7 +391,7 @@ class MainWindow(QtGui.QWidget): if not os.path.exists(os.path.join(extract_path, setting.dest_file)): fbytes = setting.get_file_bytes() - with open(os.path.join(extract_path, setting.dest_file), 'wb') as d: + with open(os.path.join(extract_path, setting.dest_file), 'wb+') as d: d.write(fbytes) if os.path.exists(setting.full_file_path): os.remove(setting.full_file_path) #remove the zip/tar since we don't need it anymore