This commit is contained in:
BarsTiger
2021-06-01 14:53:00 +03:00
parent b69fb97638
commit 53c451c3ac

View File

@@ -1,9 +1,12 @@
import urllib.request, os import urllib.request, os
from subprocess import *
from PyQt5 import *
launchfolder = os.getcwd() launchfolder = os.getcwd()
offprojects = launchfolder + "/OfficialProjects" offprojects = launchfolder + "/OfficialProjects/"
launcherfiles = offprojects + "/LAUNCHERFILES" launcherfiles = offprojects + "/LAUNCHERFILES/"
launchergithuburl = "https://raw.githubusercontent.com/BarsTiger/KOTIKOTapps_download_repo/master/KOTIKOT_launcher.py" 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 ##################### ################### Checking folders #####################
if not os.path.exists(offprojects): if not os.path.exists(offprojects):
@@ -14,3 +17,7 @@ if not os.path.exists(launcherfiles):
################### Self-updataing launcher ##################### ################### Self-updataing launcher #####################
urllib.request.urlretrieve(launchergithuburl, "KOTIKOT_launcher.py") urllib.request.urlretrieve(launchergithuburl, "KOTIKOT_launcher.py")
urllib.request.urlretrieve(launcherguigithuburl, launcherfiles + "KOTIKOTlauncherMain.py")
################### Launching GUI #####################
call('start python ' + launcherfiles + "KOTIKOTlauncherMain.py", shell=True)