Merge branch 'master' into master

This commit is contained in:
Anton Hvornum 2020-11-02 20:19:35 +01:00 committed by GitHub
commit 77f69f844b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 17 deletions

View File

@ -48,6 +48,7 @@ def run_as_a_module():
a nuitka3 compiled version of the project. a nuitka3 compiled version of the project.
This function and the file __main__ acts as a entry point. This function and the file __main__ acts as a entry point.
""" """
if len(sys.argv) == 1: if len(sys.argv) == 1:
sys.argv.append('guided') sys.argv.append('guided')
@ -57,6 +58,8 @@ def run_as_a_module():
print(f"Couldn't find file: {err}") print(f"Couldn't find file: {err}")
sys.exit(1) sys.exit(1)
os.chdir(os.path.abspath(os.path.dirname(__file__)))
try: try:
exec(profile) # Is this is very safe? exec(profile) # Is this is very safe?
except Exception as err: except Exception as err: