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 1a0b526 commit e86bb0aCopy full SHA for e86bb0a
1 file changed
src/omnipkg/dispatcher.py
@@ -320,6 +320,12 @@ def _collect_all_dispatcher_bin_dirs() -> list:
320
data = json.loads(registry.read_text(encoding="utf-8"))
321
for py_exe in data.get("interpreters", {}).values():
322
adopted_bin = Path(py_exe).parent
323
+ # On Windows, managed interpreters have python.exe in root
324
+ # but shims live in Scripts/ — check both
325
+ if sys.platform == "win32":
326
+ scripts_dir = adopted_bin / "Scripts"
327
+ if scripts_dir.exists():
328
+ adopted_bin = scripts_dir
329
if adopted_bin.resolve() != native_bin.resolve() and adopted_bin.exists():
330
dirs.append(adopted_bin)
331
except Exception:
0 commit comments