1
This commit is contained in:
@@ -48,20 +48,21 @@ def launchAutoShipper():
|
|||||||
exit()
|
exit()
|
||||||
|
|
||||||
def launchAutoBridger():
|
def launchAutoBridger():
|
||||||
autoShipperDir = offprojects + "/AutoShipper/"
|
autoBridgerDir = offprojects + "/AutoBridger/"
|
||||||
autoShipperUrl = "https://raw.githubusercontent.com/BarsTiger/KOTIKOTapps_download_repo/master/OfficialProjects/AutoShipper/autoshipper.py"
|
autoBridgerUrl = "https://raw.githubusercontent.com/BarsTiger/KOTIKOTapps_download_repo/master/OfficialProjects/Bars%60s%20auto%20bridger/AutoBridge.py"
|
||||||
|
|
||||||
if not os.path.exists(autoShipperDir):
|
if not os.path.exists(autoBridgerDir):
|
||||||
os.mkdir(autoShipperDir)
|
os.mkdir(autoBridgerDir)
|
||||||
|
|
||||||
autoShipper = autoShipperDir + "autoshipper.py"
|
autoBridger = autoBridgerDir + "AutoBridge.py"
|
||||||
urllib.request.urlretrieve(autoShipperUrl, autoShipper)
|
urllib.request.urlretrieve(autoBridgerUrl, autoBridger)
|
||||||
|
|
||||||
Popen('python ' + autoShipper, shell=True)
|
Popen('python ' + autoBridger, shell=True)
|
||||||
|
exit()
|
||||||
|
|
||||||
################### Checking buttons #####################
|
################### Checking buttons #####################
|
||||||
ui.pushButton_1.clicked.connect(launchAutoShipper)
|
ui.pushButton_1.clicked.connect(launchAutoShipper)
|
||||||
|
ui.pushButton_2.clicked.connect(launchAutoBridger)
|
||||||
|
|
||||||
################### Exiting #####################
|
################### Exiting #####################
|
||||||
sys.exit(app.exec_())
|
sys.exit(app.exec_())
|
||||||
Reference in New Issue
Block a user