Skip to content

Commit

Permalink
Fix import level
Browse files Browse the repository at this point in the history
  • Loading branch information
jtlowery committed Mar 16, 2017
1 parent f0bd57f commit 415ab76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ex4/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 415ab76

Please sign in to comment.