2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-28 20:53:35 +08:00

test/harness: exec in globals

This commit is contained in:
Robert Jördens 2016-01-18 16:55:10 -07:00
parent 057b5d9f35
commit 16a1ab4418

View File

@ -29,7 +29,7 @@ def main():
sys.argv[1:] = args.args[1:]
with open(args.args[0]) as f:
code = compile(f.read(), args.args[0], 'exec')
exec(code)
exec(code, globals())
if __name__ == "__main__":
main()