aboutsummaryrefslogtreecommitdiff
path: root/neb/std/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'neb/std/core.py')
-rw-r--r--neb/std/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/neb/std/core.py b/neb/std/core.py
index 171b96b..8881468 100644
--- a/neb/std/core.py
+++ b/neb/std/core.py
@@ -166,7 +166,7 @@ def interpretUseAs(symbol, args, env, ns):
raise InterpretPanic(symbol, "no such file", target_file)
with open(target_file, "r") as fil:
data = fil.read()
- interpret(parse(lex(data)), ns=args[1].name)
+ interpret(parse(lex(data)), env, args[1].name)
return List([])
CORE.register("use-as", Builtin("use-as", interpretUseAs, [Arg("filename", TypeEnum.STRING), Arg("namespace", TypeEnum.ANY, lazy=True)]))