8000
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 81258dd commit f057fc6Copy full SHA for f057fc6
src/util.ts
@@ -79,21 +79,23 @@ async function findlibs(): Promise<string[]> {
79
libs.concat(await search(location));
80
}
81
} else {
82
- const paths = ["/usr/lib", "/lib"];
+ const paths = [];
83
84
if (Deno.build.os === "darwin") {
85
paths.push(
86
- "/System/Library",
+ "/System/Library/Python.framework/Versions",
87
"/opt/homebrew/Frameworks",
88
"/usr/local/Frameworks",
89
);
90
91
for (const [major, minor] of versions) {
92
const path = `Python.framework/Versions/${major}.${minor}/Python`;
93
if (await exists(path)) {
94
- paths.push(path);
+ libs.push(path);
95
96
97
+ } else {
98
+ paths.push("/usr/lib", "/lib");
99
100
101
for (const path of paths) {
0 commit comments