From bd3866316949f8ba7162e0292be0776d6f51cf50 Mon Sep 17 00:00:00 2001 From: Maxime Lapointe Date: Tue, 23 Jul 2019 08:55:15 -0400 Subject: [PATCH] Use sys.executable as default python executable It's more likely to be the correct Python executable in case where someone specified the executable when running mutmut. --- mutmut/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mutmut/__main__.py b/mutmut/__main__.py index 1f86048..d300a23 100644 --- a/mutmut/__main__.py +++ b/mutmut/__main__.py @@ -193,7 +193,7 @@ def print_progress(self): @click.option('--post-mutation') @config_from_setup_cfg( dict_synonyms='', - runner='python -m pytest -x', + runner='"' + sys.executable + '" -m pytest -x', tests_dir=DEFAULT_TESTS_DIR, pre_mutation=None, post_mutation=None,