Skip to content

Commit

Permalink
work around case sensitivty on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoma committed May 22, 2017
1 parent b206248 commit 87142cb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mcpyver",
"version": "0.0.4-beta.20",
"version": "0.0.4-beta.21",
"description": "Easily detect all of the Python versions on your machine",
"main": "dist/bundle.js",
"scripts": {
Expand Down
16 changes: 10 additions & 6 deletions src/executables/executable.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,16 +367,20 @@ export default class Executable {
static get searchPaths () {
return [
'/usr/local/Cellar/python*/*/bin',
join(homedir(), 'anaconda*', 'bin'),
join(homedir(), '*conda*'),
join(homedir(), '*conda*', 'bin'),
join(homedir(), '*conda*', 'Scripts'),
'/usr/local/bin',
'/usr/bin/',
join(homedir(), 'miniconda*', 'bin'),
'/Library/Frameworks/Python.framework/Versions/*/bin/',
'/System/Library/Frameworks/Python.framework/Versions/*/bin/',
'/Python*',
'/Python*/Scripts',
join(homedir(), 'Python*'),
join(homedir(), 'Python*', 'Scripts')
'/*conda*',
'/*conda*/bin',
'/*conda*/Scripts',
'/*ython*',
'/*ython*/Scripts',
join(homedir(), '*ython*'),
join(homedir(), '*ython*', 'Scripts')
].map(normalize)
}

Expand Down

0 comments on commit 87142cb

Please sign in to comment.