emit text label 'making base backup'
This commit is contained in:
parent
0b4daa5e93
commit
2e6b406ff5
@ -187,6 +187,7 @@ class updateThread(QtCore.QThread):
|
||||
print "downloaded update"
|
||||
downloadfile.close()
|
||||
if platform.system() == "Darwin" and ".app" in sys.argv[0]: # bundle
|
||||
self.labelText.emit("Making a backup of AO base folder...")
|
||||
path = "/".join(sys.argv[0].split("/")[:-1]) # to Resources folder
|
||||
os.system("cp -r "+path+"/base ./appbase") # move the base folder out of the app folder to avoid deletion
|
||||
returncode = 0
|
||||
|
Loading…
Reference in New Issue
Block a user