Commit af199e99 authored by Jason R. Coombs's avatar Jason R. Coombs

Fix error in StaticModule implementation.

parent a11c8eac
...@@ -26,7 +26,7 @@ class StaticModule: ...@@ -26,7 +26,7 @@ class StaticModule:
Attempt to load the module by the name Attempt to load the module by the name
""" """
def __init__(self, name): def __init__(self, name):
spec = importlib.util.find_spec(module_name) spec = importlib.util.find_spec(name)
with open(spec.origin) as strm: with open(spec.origin) as strm:
src = strm.read() src = strm.read()
module = ast.parse(src) module = ast.parse(src)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment