forked from M-Labs/artiq
1
0
Fork 0

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
1 changed files with 1 additions and 1 deletions

View File

@ -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()