File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11import platform
22import os
33import shutil
4- import sys
54
65from conan .tools .build import cmd_args_to_string
76from 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
You can’t perform that action at this time.
0 commit comments