We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbfbe9d commit 2fccae0Copy full SHA for 2fccae0
src/promptfoo/cli.py
@@ -108,9 +108,8 @@ def _find_external_promptfoo() -> Optional[str]:
108
109
if argv0_path and promptfoo_path_norm == argv0_path:
110
is_self = True
111
- elif (
112
- sys.prefix != sys.base_prefix
113
- and os.path.dirname(promptfoo_path_norm) == os.path.dirname(_normalize_path(sys.executable))
+ elif sys.prefix != sys.base_prefix and os.path.dirname(promptfoo_path_norm) == os.path.dirname(
+ _normalize_path(sys.executable)
114
):
115
# Running in a virtual environment. Check if the found executable is in the same
116
# directory as the Python interpreter. This detects shims (e.g. Windows .exe, uv)
0 commit comments