initial
This commit is contained in:
13
_jobs/bb50fd78018d/run_stepanalyser.py
Normal file
13
_jobs/bb50fd78018d/run_stepanalyser.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import os, sys, traceback
|
||||
def p(*a): print(*a, flush=True)
|
||||
try:
|
||||
base = os.path.dirname(os.path.abspath(__file__))
|
||||
os.chdir(base)
|
||||
sys.argv = ["stepanalyser.py", "--material", "stainless"]
|
||||
code = open("stepanalyser.py", "r", encoding="utf-8").read()
|
||||
exec(compile(code, "stepanalyser.py", "exec"), {"__name__": "__main__"})
|
||||
except Exception:
|
||||
p("RUNNER ERROR:")
|
||||
p(traceback.format_exc())
|
||||
finally:
|
||||
os._exit(0)
|
||||
Reference in New Issue
Block a user