From 721bc9e41c329d7e96c7aee96eb2eb745b6b752d Mon Sep 17 00:00:00 2001 From: BarsTiger Date: Fri, 11 Jun 2021 14:25:12 +0300 Subject: [PATCH] 1 --- KOTIKOT_launcher.py | 1 + OfficialProjects/SuperTimer/SuperTimer.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/KOTIKOT_launcher.py b/KOTIKOT_launcher.py index 3a5f241..d2bf9b3 100644 --- a/KOTIKOT_launcher.py +++ b/KOTIKOT_launcher.py @@ -150,6 +150,7 @@ def launchSuperTimer(): SuperTimer = SuperTimerDir + "SuperTimer.py" urllib.request.urlretrieve(SuperTimerUrl, SuperTimer) + os.system('cd' + SuperTimerDir) os.system("python " + SuperTimer) diff --git a/OfficialProjects/SuperTimer/SuperTimer.py b/OfficialProjects/SuperTimer/SuperTimer.py index 817b80b..a5ac23a 100644 --- a/OfficialProjects/SuperTimer/SuperTimer.py +++ b/OfficialProjects/SuperTimer/SuperTimer.py @@ -10,8 +10,8 @@ except: subprocess.check_call([sys.executable, "-m", "pip", "install", 'playsound']) from playsound import playsound -if not os.path.isfile('OfficialProjects\SuperTimer\alarm.mp3'): - urllib.request.urlretrieve("https://github.com/BarsTiger/KOTIKOTapps_download_repo/blob/master/OfficialProjects/SuperTimer/alarm.mp3?raw=true", "OfficialProjects\SuperTimer\alarm.mp3") +if not os.path.isfile('alarm.mp3'): + urllib.request.urlretrieve("https://github.com/BarsTiger/KOTIKOTapps_download_repo/blob/master/OfficialProjects/SuperTimer/alarm.mp3?raw=true", 'alarm.mp3') print("You can change alarm sound: just reneame your sound to alarm.mp3 and copy it to SuperTimer folder (to get original just delete your file)") superSecond = float(input("Print how many real seconds will be in superSecond: "))