|
tuple | parser = ArgumentParser() |
|
tuple | args = parser.parse_args() |
|
tuple | output_dir = os.path.abspath("tmp") |
|
tuple | current_path = os.path.dirname(os.path.realpath(__file__)) |
|
list | states_file = argv[1] |
|
tuple | output_file = os.path.join(output_dir, os.path.split(states_file)[-1]) |
|
tuple | build_path = os.path.abspath(os.path.join(current_path, "..", "..", "..", "build")) |
|
tuple | project_path = os.path.abspath(os.path.join(current_path, "..", "..")) |
|
tuple | staterunner_path = os.path.join(build_path, "tools", "staterunner") |
|
tuple | lib_path = os.path.join("..", "..", "src") |
|
tuple | env = dict(os.environ) |
|
list | run_argument = ["./staterunner", states_file, output_file] |
|
tuple | proc = subprocess.call(run_argument, cwd=staterunner_path, env=env) |
|