Skip to content

Commit 6a4a67e

Browse files
committed
fix(winpython): narrow search paths and add discovery cache (Fixes #453)
1 parent ab6d1d2 commit 6a4a67e

2 files changed

Lines changed: 399 additions & 118 deletions

File tree

crates/pet-winpython/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,26 @@ WPy64-31300/ # Top-level WinPython directory
3030
## Platform Support
3131

3232
This locator only works on Windows, as WinPython is a Windows-only distribution.
33+
34+
## Search Paths
35+
36+
By default, the locator only looks for WinPython installations under
37+
`%USERPROFILE%\WinPython`. Earlier versions also scanned drive roots
38+
(`C:\`, `D:\`, `E:\`), `Program Files`, `Downloads`, `Desktop`, and
39+
`Documents` on every refresh — those scans were a Windows Defender
40+
hot-spot and inflated refresh latency, so they have been removed.
41+
42+
If your WinPython installation lives elsewhere, point the locator at it
43+
with the `WINPYTHON_HOME` environment variable. The value can be a
44+
single path or a `;`-separated list of paths. Each entry can either:
45+
46+
- *be* a WinPython installation (e.g. `D:\WPy64-31300`), or
47+
- *contain* one or more WinPython installations (e.g. `D:\python-tools`
48+
with `D:\python-tools\WPy64-31300` inside).
49+
50+
Examples:
51+
52+
```
53+
set WINPYTHON_HOME=D:\WPy64-31300
54+
set WINPYTHON_HOME=D:\WPy64-31300;E:\portable-python
55+
```

0 commit comments

Comments
 (0)