ADDED launch non encrypted file

This commit is contained in:
Ninnjah 2021-01-02 16:16:25 +03:00 committed by GitHub
parent f9775d3676
commit da8ea99ed6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,4 +27,7 @@ def decrypt(filename, key):
return decrypted_data.decode('utf-8') return decrypted_data.decode('utf-8')
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)) exec(decrypt(os.path.join('data', 'sundpood-runtime.sr') , key.KEY))