Skip to content

Commit

Permalink
Detect Python3 before Python2 on Windows OS
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhamlett committed Apr 4, 2018
1 parent e254d9a commit e72ab7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/wakatime.coffee
Expand Up @@ -286,11 +286,11 @@ pythonLocation = (callback, locations) ->
'/usr/bin/python3',
'/usr/bin/python',
]
i = 26
while i < 50
i = 39
while i >= 26
locations.push '\\python' + i + '\\pythonw'
locations.push '\\Python' + i + '\\pythonw'
i++
i--
args = ['--version']
if locations.length is 0
callback(null)
Expand Down

0 comments on commit e72ab7f

Please sign in to comment.