From e8224f5acbdf54d788afe5248e817abfaa10ad73 Mon Sep 17 00:00:00 2001 From: ionburger Date: Sat, 29 Oct 2022 13:13:55 -0600 Subject: [PATCH] eee --- py/init.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/py/init.py b/py/init.py index 887d37b..bdf72e1 100644 --- a/py/init.py +++ b/py/init.py @@ -1,9 +1,18 @@ +#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)