eee
This commit is contained in:
parent
ccebb647f9
commit
e8224f5acb
@ -1,9 +1,18 @@
|
|||||||
|
#imports
|
||||||
import version
|
import version
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
#funky stuff to deal with relative file paths
|
||||||
|
dir = os.getcwd()
|
||||||
|
os.chdir(os.path.dirname(os.path.realpath(__file__)))
|
||||||
|
|
||||||
|
#updater
|
||||||
if version.local() < version.remote():
|
if version.local() < version.remote():
|
||||||
print("needs update")
|
print("needs update")
|
||||||
else:
|
else:
|
||||||
print("is fine")
|
print("is fine")
|
||||||
if input("aaa") == "y":
|
if input("aaa") == "y":
|
||||||
|
|
||||||
|
os.chdir(dir)
|
||||||
os.execl(sys.executable, sys.executable, *sys.argv)
|
os.execl(sys.executable, sys.executable, *sys.argv)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user