Commit a5808e61 authored by Tom Niget's avatar Tom Niget

Include sys by default, for argv filling

parent cb121dc5
......@@ -11,6 +11,7 @@ class FileVisitor(BlockVisitor):
def visit_Module(self, node: ast.Module) -> Iterable[str]:
stmt: ast.AST
yield "#include <python/builtins.hpp>"
yield "#include <python/sys.hpp>"
visitor = ModuleVisitor(self.scope)
code = [line for stmt in node.body for line in visitor.visit(stmt)]
yield from visitor.includes
......
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