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:
parent
057b5d9f35
commit
16a1ab4418
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user