X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=test%2Fintegration%2Ftestlib%2Ftemplate.py;h=83d2f853a8e6a282bfac00023c5dcb262685c561;hb=a5c6c6ea1ab657d83a4d8b064ac9bfa9c16adf63;hp=b90299c02aed56ac55cdaa1b8962e119838a0a23;hpb=5a76af7839d3239a16a6a3f9dabe05768799de89;p=tinc diff --git a/test/integration/testlib/template.py b/test/integration/testlib/template.py index b90299c0..83d2f853 100755 --- a/test/integration/testlib/template.py +++ b/test/integration/testlib/template.py @@ -9,7 +9,6 @@ from .notification import notifications _CMD_VARS = os.linesep.join([f"set {var}={val}" for var, val in path.env.items()]) -_CMD_PY = "runpython" if "meson.exe" in path.PYTHON_PATH.lower() else "" def _read_template(tpl_name: str, maps: T.Dict[str, T.Any]) -> str: @@ -40,7 +39,7 @@ def make_script(node: str, script: str, source: str) -> str: def make_cmd_wrap(script: str) -> str: """Create a .cmd wrapper for tincd script. Only makes sense on Windows.""" maps = { - "PYTHON_CMD": _CMD_PY, + "PYTHON_CMD": path.PYTHON_CMD, "PYTHON_PATH": path.PYTHON_PATH, "SCRIPT_PATH": script, "VARIABLES": _CMD_VARS,