16if __name__ ==
"__main__":
18 prepare_path = os.getenv(
"BELLE2_PREPARE_PATH",
"")
19 if prepare_path ==
"":
20 parent_path = pathlib.Path(b2.find_file(
'framework')).parent.absolute()
21 prepare_path = os.path.join(parent_path,
"prepare_tests")
23 os.mkdir(prepare_path)
24 except FileExistsError:
28 steering = b2.find_file(os.path.join(
'reconstruction',
'tests',
'prepare',
'evtgen_no_mc.py_noexec'))
29 output_file = os.path.join(prepare_path,
'test_standalone_reco_no_mc_bbbar_exp0.root')
30 subprocess.check_call(
31 [
'basf2', steering,
'--experiment',
'0',
'--run',
'0',
'-n',
'3',
'-o', output_file]