We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab2cc23 commit 5ada75bCopy full SHA for 5ada75b
piptools/scripts/sync.py
@@ -98,6 +98,15 @@ def cli(
98
if config:
99
log.debug(f"Using pip-tools configuration defaults found in '{config !s}'.")
100
101
+ current_python = sys.executable
102
+ log.debug(f"{current_python=}")
103
+ env_python = shutil.which("python")
104
+ log.debug(f"{env_python=}")
105
+
106
+ if python_executable is None and current_python != env_python:
107
+ # pip-tools probably installed globally (e.g. via pipx)
108
+ python_executable = env_python
109
110
if python_executable:
111
_validate_python_executable(python_executable)
112
0 commit comments