2022-10-29 13:13:55 -06:00
|
|
|
#imports
|
2022-10-29 11:39:40 -06:00
|
|
|
import version
|
2022-10-29 12:32:37 -06:00
|
|
|
import sys
|
|
|
|
|
import os
|
2022-10-29 13:13:55 -06:00
|
|
|
|
|
|
|
|
#funky stuff to deal with relative file paths
|
|
|
|
|
dir = os.getcwd()
|
|
|
|
|
os.chdir(os.path.dirname(os.path.realpath(__file__)))
|
|
|
|
|
|
|
|
|
|
#updater
|
2022-10-29 11:39:40 -06:00
|
|
|
if version.local() < version.remote():
|
|
|
|
|
print("needs update")
|
|
|
|
|
else:
|
|
|
|
|
print("is fine")
|
2022-10-29 12:32:37 -06:00
|
|
|
if input("aaa") == "y":
|
2022-10-29 13:13:55 -06:00
|
|
|
|
|
|
|
|
os.chdir(dir)
|
2022-10-29 12:32:37 -06:00
|
|
|
os.execl(sys.executable, sys.executable, *sys.argv)
|