Skip to content

Commit 9ad75fb

Browse files
authored
Switch to sys.base_prefix for better Lib path detection
1 parent e9d55a5 commit 9ad75fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/proxy/build_pythoncore.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
_EXCLUDE_MODULES = ["ensurepip", "idlelib", "test", "tkinter", "turtle_demo", "venv"]
66

7-
libdir = Path(sys.executable).parent.joinpath("Lib")
7+
libdir = Path(sys.base_prefix).joinpath("Lib")
88
assert libdir.exists()
99

1010
with zipfile.PyZipFile(sys.argv[1], optimize=2, mode="w") as fp:

0 commit comments

Comments
 (0)