split(), not splitext()

This commit is contained in:
Headshotnoby 2021-06-25 10:21:40 -04:00
parent 954d3b8acd
commit 68856f9ecb

View File

@ -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):