From da8ea99ed64a75ed17b8113c513e9fb0348bb516 Mon Sep 17 00:00:00 2001 From: Ninnjah <45268461+Ninnjah@users.noreply.github.com> Date: Sat, 2 Jan 2021 16:16:25 +0300 Subject: [PATCH] ADDED launch non encrypted file --- launcher.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/launcher.py b/launcher.py index 890207d..b34b9eb 100644 --- a/launcher.py +++ b/launcher.py @@ -27,4 +27,7 @@ def decrypt(filename, key): return decrypted_data.decode('utf-8') -exec(decrypt(os.path.join('data', 'sundpood-runtime.sr') , key.KEY)) +if os.path.exists(os.path.join('data', 'main.py')): + exec(os.path.join('data', 'main.py')) +else: + exec(decrypt(os.path.join('data', 'sundpood-runtime.sr') , key.KEY))