diff options
author | raylu <raylu@mixpanel.com> | 2011-07-10 03:31:54 -0700 |
---|---|---|
committer | raylu <raylu@mixpanel.com> | 2011-07-10 03:31:54 -0700 |
commit | 68ec6a5d93e5c2460bf686a53c2e8dee8549af08 (patch) | |
tree | ccab01231b188d1229a134415fde1100932d81da /graders/lab1.py | |
parent | a2dc8b6d55ae2ab275b5460ab81362bfe454a623 (diff) | |
download | pyc-68ec6a5d93e5c2460bf686a53c2e8dee8549af08.tar.xz |
use __import__ instead of exec
Diffstat (limited to 'graders/lab1.py')
-rwxr-xr-x | graders/lab1.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graders/lab1.py b/graders/lab1.py index 66417af..f2c6c42 100755 --- a/graders/lab1.py +++ b/graders/lab1.py @@ -16,7 +16,7 @@ sys.path.insert(0, path.expanduser('~/submissions')) sys.dont_write_bytecode = True def run(): - exec("import %s as submission" % importname) + submission = __import__(importname) if submission.test() == 1: return 100 else: |