fix Python 2 import (fix #78)

This commit is contained in:
Daniel Troeder 2019-03-23 07:27:34 +01:00
parent b455cffb53
commit cadd8e6834

View File

@ -16,7 +16,7 @@ except ImportError:
def load_module(name, filepath):
with open(filepath, 'r') as fd:
imp.load_module('a_b', f, path, ('.py', 'U', imp.PY_SOURCE))
imp.load_module('a_b', fd, filepath, ('.py', 'U', imp.PY_SOURCE))
from better_exceptions import interact, hook
hook()