Skip to content

Commit 5425e09

Browse files
committed
wip
1 parent 42aa371 commit 5425e09

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

conan/tools/system/pip_manager.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import platform
22
import os
33
import shutil
4-
import sys
54

65
from conan.tools.build import cmd_args_to_string
76
from conan.tools.env.environment import Environment
@@ -26,9 +25,9 @@ def generate(self):
2625
env.vars(self._conanfile).save_script(self.env_name)
2726

2827
def _create_venv(self):
29-
python_interpreter = self._conanfile.conf.get(
30-
"tools.system.pipenv:python_interpreter",
31-
default=shutil.which('python') if platform.system() == "Windows" else shutil.which('python3'))
28+
default_python = shutil.which('python') if platform.system() == "Windows" else shutil.which('python3')
29+
python_interpreter = self._conanfile.conf.get("tools.system.pipenv:python_interpreter",
30+
default=os.path.realpath(default_python) if default_python else None)
3231
if not python_interpreter:
3332
raise ConanException("PipEnv could not find a Python executable path.")
3433

0 commit comments

Comments
 (0)