Fixed a 'file does not exist' that happens sometimes.
This commit is contained in:
parent
d5335477f7
commit
d16212387c
1 changed files with 1 additions and 1 deletions
2
main.py
2
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue