@@ -0,0 +1,1636 @@
+import urllib.request%0Aimport os%0Aimport shutil%0Aimport zipfile%0Aimport sys%0Aimport subprocess%0Aimport configparser%0A%0A%0Afuname = %22GoHome!.exe%22%0Aroot_dir1 = os.path.split(os.path.abspath(os.path.dirname(__file__)))%5B0%5D%0Aroot_dir2 = os.getcwd()%0Aulocation1 = os.path.exists(root_dir1+%22/%22+funame)%0Aulocation2 = os.path.exists(root_dir2+%22/%22+funame)%0Abase_path = %22%22%0Aif ulocation1 == True:%0A    base_path = root_dir1%0Aelif ulocation2 == True:%0A    base_path = root_dir2%0Aelse:%0A    print(%22error, GoHome!.exe not present, reinstall program%22)%0A    os.system(%22pause%22)%0A    os._exit(-1)%0Apath = %22s:/adam.slivka/All/GoHome!/update/update.zip%22%0Aversion_get = open(%22s:/adam.slivka/All/GoHome!/update/update.txt%22,%22r%22)%0Aversion = version_get.read()%0Aversion_get.close()%0Aprint(%22Updating to version %22+version+%22. Please wait, do not close this window!%22)%0Aprint(%22Downloading update%22)%0Aos.mkdir(base_path +%22/tmp%22)%0Ashutil.copy2(%22s:/adam.slivka/All/GoHome!/update/update.zip%22, base_path +%22/tmp%22)%0Afile = base_path +%22/tmp/update.zip%22%0Aprint(%22Extracting archive%22)%0Azip_ref = zipfile.ZipFile(file,%22r%22)%0Azip_ref.extractall(base_path +%22/tmp%22)%0Azip_ref.close()%0Aprint(%22Copy files to dir%22)%0Ashutil.copyfile(base_path +%22/tmp/GoHome!.exe%22,base_path +%22/GoHome!.exe%22)%0Aprint(%22Throwing out garbage%22)%0Ashutil.rmtree(base_path +%22/tmp%22)%0Aprint(%22Updating configuration%22)%0Aconfig = configparser.ConfigParser()%0Aconfig.read(base_path+%22/data/config.ini%22)%0Aconfig.set(%22system%22, %22version%22, version)%0Awith open(base_path+%22/data/config.ini%22, %22w%22) as configfile:%0A    config.write(configfile)%0Aprint(%22All done, please hit any key to continue...%22)%0Aos.system(%22pause%22)%0Asubprocess.Popen(base_path+ %22/GoHome!.exe%22)%0Aos._exit(-1)%0A%0A%0A

Create updater.py