Skip to content
Snippets Groups Projects
Commit cac4c1c9 authored by u214892's avatar u214892
Browse files

#163 random guesses

parent cb4020ef
No related branches found
No related tags found
No related merge requests found
......@@ -25,12 +25,12 @@ for entry in [entry for entry in importlib_resources.contents('examples') if
print("*****************************************************************")
print("Running {}".format(entry))
print("*****************************************************************")
# with swap_attr(sys, "stdin", StringIO("q")):
# try:
# runpy.run_path(file_in, run_name="__main__", init_globals={
# 'argv': ['--sleep-for-animation=False']
# })
# except Exception as e:
# print(e)
# print("runpy done.")
# print("Done with {}".format(entry))
with swap_attr(sys, "stdin", StringIO("q")):
try:
runpy.run_path(file_in, run_name="__main__", init_globals={
'argv': ['--sleep-for-animation=False']
})
except Exception as e:
print(e)
print("runpy done.")
print("Done with {}".format(entry))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment