From 705dd348ff27a7f4a09351136ab8b48bdb7deb7a Mon Sep 17 00:00:00 2001 From: Ninnjah <45268461+Ninnjah@users.noreply.github.com> Date: Sat, 2 Jan 2021 18:05:18 +0300 Subject: [PATCH] Hotfix --- launcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher.py b/launcher.py index b34b9eb..cd83a97 100644 --- a/launcher.py +++ b/launcher.py @@ -14,7 +14,6 @@ from data import ui_hotkeys from data import ui_sundpood from data import ui_overlay from data import keys -import themes ### ^^^ ^^^ ### def decrypt(filename, key): @@ -28,6 +27,7 @@ def decrypt(filename, key): return decrypted_data.decode('utf-8') if os.path.exists(os.path.join('data', 'main.py')): - exec(os.path.join('data', 'main.py')) + with open(os.path.join('data', 'main.py'), 'r', encoding='utf-8') as f: + exec(f.read()) else: exec(decrypt(os.path.join('data', 'sundpood-runtime.sr') , key.KEY))