7 from pathlib
import Path
11 _thisdir = Path(__file__).absolute().resolve().parent
15 """Run the esiquery executable with the same arguments as this script."""
16 esiquery = _thisdir /
"bin" /
"esiquery"
17 return subprocess.call([esiquery] + sys.argv[1:])
21 """Run the esi-cosim.py script with the same arguments as this script."""
23 esi_cosim = _thisdir /
"bin" /
"esi-cosim.py"
24 spec = importlib.util.spec_from_file_location(
"esi_cosim", esi_cosim)
25 assert spec
is not None
26 cosim_import = importlib.util.module_from_spec(spec)
27 spec.loader.exec_module(cosim_import)
28 return cosim_import.__main__(sys.argv)
36 return _thisdir /
"cmake"