forked from M-Labs/artiq
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:]
|
sys.argv[1:] = args.args[1:]
|
||||||
with open(args.args[0]) as f:
|
with open(args.args[0]) as f:
|
||||||
code = compile(f.read(), args.args[0], 'exec')
|
code = compile(f.read(), args.args[0], 'exec')
|
||||||
exec(code)
|
exec(code, globals())
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in New Issue