We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73877ef commit 65cae8bCopy full SHA for 65cae8b
src/promptfoo/cli.py
@@ -105,9 +105,7 @@ def _find_external_promptfoo() -> Optional[str]:
105
if argv0_path and _normalize_path(promptfoo_path) == argv0_path:
106
wrapper_dir = _normalize_path(os.path.dirname(promptfoo_path))
107
path_entries = [
108
- entry
109
- for entry in _split_path(os.environ.get("PATH", ""))
110
- if _normalize_path(entry) != wrapper_dir
+ entry for entry in _split_path(os.environ.get("PATH", "")) if _normalize_path(entry) != wrapper_dir
111
]
112
if path_entries:
113
candidate = shutil.which("promptfoo", path=os.pathsep.join(path_entries))
0 commit comments