1
This commit is contained in:
@@ -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)
|
||||||
Reference in New Issue
Block a user