diff --git a/asv/commands/profiling.py b/asv/commands/profiling.py index b3bf93ba7..d574b43e8 100644 --- a/asv/commands/profiling.py +++ b/asv/commands/profiling.py @@ -11,7 +11,7 @@ from . import Command, common_args from ..benchmarks import Benchmarks from ..console import log -from ..environment import get_environments, is_existing_only +from ..environment import get_environments, is_existing_only, ExistingEnvironment from ..machine import Machine from ..profiling import ProfilerGui from ..repo import get_repo, NoSuchNameError @@ -172,6 +172,7 @@ def run(cls, conf, benchmark, revision=None, gui=None, output=None, env for env in environments if util.env_py_is_sys_version(env.python) + or isinstance(env, ExistingEnvironment) ][0] benchmarks = Benchmarks.discover(conf, repo, environments,