diff --git a/codecov_cli/runners/pytest_standard_runner.py b/codecov_cli/runners/pytest_standard_runner.py index 0e4260dde..38e5921b1 100644 --- a/codecov_cli/runners/pytest_standard_runner.py +++ b/codecov_cli/runners/pytest_standard_runner.py @@ -2,6 +2,7 @@ import logging import random import subprocess +import sys from subprocess import CalledProcessError from sys import stdout from typing import List, Optional @@ -20,7 +21,7 @@ class PytestStandardRunnerConfigParams(dict): @property def python_path(self) -> str: python_path = self.get("python_path") - return python_path or "python" + return python_path or sys.executable @property def collect_tests_options(self) -> List[str]: