| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -342,7 +342,7 @@ export class Conda { | |||
| 342 | 342 | prefixes.push(home, path.join(localAppData, 'Continuum')); | |
| 343 | 343 | } | |
| 344 | 344 | } else { | |
| 345 | - prefixes.push('/usr/share', '/usr/local/share', '/opt'); | ||
| 345 | + prefixes.push('/usr/share', '/usr/local/share', '/opt', '/opt/homebrew/bin'); | ||
| 346 | 346 | if (home) { | |
| 347 | 347 | prefixes.push(home, path.join(home, 'opt')); | |
| 348 | 348 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -276,7 +276,11 @@ suite('Conda and its environments are located correctly', () => { | |||
| 276 | 276 | opt: {}, | |
| 277 | 277 | }, | |
| 278 | 278 | }, | |
| 279 | - opt: {}, | ||
| 279 | + opt: { | ||
| 280 | + homebrew: { | ||
| 281 | + bin: {}, | ||
| 282 | + }, | ||
| 283 | + }, | ||
| 280 | 284 | usr: { | |
| 281 | 285 | share: { | |
| 282 | 286 | doc: {}, | |
@@ -290,7 +294,14 @@ suite('Conda and its environments are located correctly', () => { | |||
| 290 | 294 | }; | |
| 291 | 295 | }); | |
| 292 | 296 | ||
| 293 | - ['/usr/share', '/usr/local/share', '/opt', '/home/user', '/home/user/opt'].forEach((prefix) => { | ||
| 297 | + [ | ||
| 298 | + '/usr/share', | ||
| 299 | + '/usr/local/share', | ||
| 300 | + '/opt', | ||
| 301 | + '/opt/homebrew/bin', | ||
| 302 | + '/home/user', | ||
| 303 | + '/home/user/opt', | ||
| 304 | + ].forEach((prefix) => { | ||
| 294 | 305 | const condaPath = `${prefix}/${condaDirName}`; | |
| 295 | 306 | ||
| 296 | 307 | test(`Must find conda in ${condaPath}`, async () => { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments