split(), not splitext()
This commit is contained in:
parent
954d3b8acd
commit
68856f9ecb
@ -150,7 +150,7 @@ class updateThread(QtCore.QThread):
|
|||||||
path = sys.argv[0]
|
path = sys.argv[0]
|
||||||
if platform.system() == "Darwin":
|
if platform.system() == "Darwin":
|
||||||
path = Cocoa.NSBundle.mainBundle().bundlePath()
|
path = Cocoa.NSBundle.mainBundle().bundlePath()
|
||||||
os.chdir(os.path.splitext(path)[0]) # right next to the .app package
|
os.chdir(os.path.split(path)[0]) # right next to the .app package
|
||||||
|
|
||||||
updatezip = "update" + os.path.splitext(filename)[1]
|
updatezip = "update" + os.path.splitext(filename)[1]
|
||||||
if not os.path.exists(updatezip):
|
if not os.path.exists(updatezip):
|
||||||
|
Loading…
Reference in New Issue
Block a user