From 415ab764ce9a156936080cf25db0290c4f3a00ac Mon Sep 17 00:00:00 2001 From: Joel Lowery Date: Thu, 16 Mar 2017 01:11:57 -0500 Subject: [PATCH] Fix import level --- ex4/submit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ex4/submit.py b/ex4/submit.py index 02c9fc3..6fd0077 100644 --- a/ex4/submit.py +++ b/ex4/submit.py @@ -32,7 +32,7 @@ def output(part_id): t = np.hstack((t1.T.ravel(), t2.T.ravel())) fname = srcs[part_id - 1].rsplit('.', 1)[0] - mod = __import__(fname, fromlist=[fname], level=1) + mod = __import__(fname, fromlist=[fname], level=0) func = getattr(mod, fname) if part_id == 1: