turdbot/py/init.py
ionburger e8224f5acb eee
2022-10-29 13:13:55 -06:00

19 lines
369 B
Python

#imports
import version
import sys
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():
print("needs update")
else:
print("is fine")
if input("aaa") == "y":
os.chdir(dir)
os.execl(sys.executable, sys.executable, *sys.argv)