diff --git a/KOTIKOT_launcher.py b/KOTIKOT_launcher.py index a50e2b7..47b61ce 100644 --- a/KOTIKOT_launcher.py +++ b/KOTIKOT_launcher.py @@ -1,9 +1,12 @@ import urllib.request, os +from subprocess import * +from PyQt5 import * launchfolder = os.getcwd() -offprojects = launchfolder + "/OfficialProjects" -launcherfiles = offprojects + "/LAUNCHERFILES" +offprojects = launchfolder + "/OfficialProjects/" +launcherfiles = offprojects + "/LAUNCHERFILES/" launchergithuburl = "https://raw.githubusercontent.com/BarsTiger/KOTIKOTapps_download_repo/master/KOTIKOT_launcher.py" +launcherguigithuburl = "https://raw.githubusercontent.com/BarsTiger/KOTIKOTapps_download_repo/master/OfficialProjects/LAUNCHERFILES/KOTIKOTlauncherMain.py" ################### Checking folders ##################### if not os.path.exists(offprojects): @@ -14,3 +17,7 @@ if not os.path.exists(launcherfiles): ################### Self-updataing launcher ##################### urllib.request.urlretrieve(launchergithuburl, "KOTIKOT_launcher.py") +urllib.request.urlretrieve(launcherguigithuburl, launcherfiles + "KOTIKOTlauncherMain.py") + +################### Launching GUI ##################### +call('start python ' + launcherfiles + "KOTIKOTlauncherMain.py", shell=True) \ No newline at end of file