From 4c9469079e4543ed06c9e57f8e836bb24f7d0eac Mon Sep 17 00:00:00 2001 From: Luke Slevinsky Date: Mon, 12 Aug 2019 13:55:53 -0700 Subject: [PATCH] Change the gloabls for exec --- src/process_user_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/process_user_code.py b/src/process_user_code.py index 55a42bd55..d22ccc716 100644 --- a/src/process_user_code.py +++ b/src/process_user_code.py @@ -89,7 +89,7 @@ def execute_user_code(abs_path_to_code_file): user_code = file.read() try: codeObj = compile(user_code, abs_path_to_code_file, 'exec') - exec(codeObj) + exec(codeObj, {}) sys.stdout.flush() except Exception as e: exc_type, exc_value, exc_traceback = sys.exc_info()