Skip to content

Commit 00b5d0c

Browse files
authored
Change existence check to use isfile "python" for penv_dir
1 parent 3886ceb commit 00b5d0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/penv_setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ def _setup_pipenv_minimal(penv_dir):
497497
Returns:
498498
str or None: Path to uv executable if uv was used, None if python -m venv was used
499499
"""
500-
if not os.path.exists(penv_dir):
500+
if not os.path.isfile(get_executable_path(penv_dir, "python")):
501501
# Attempt virtual environment creation using uv package manager
502502
uv_success = False
503503
uv_cmd = None

0 commit comments

Comments
 (0)