Skip to content

Commit

Permalink
Merge pull request #5 from labrys/py3/test_latest
Browse files Browse the repository at this point in the history
Py3/test latest
  • Loading branch information
labrys authored Feb 28, 2021
2 parents cccfca7 + 3fba0da commit 8774cc2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion knowit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ def define_candidate(locations, names, os_family=None, suggested_path=None):

if location == '__PATH__':
for name in names[os_family]:
yield name
if os_family == 'windows':
for path in os.environ['PATH'].split(';'):
yield os.path.join(path, name)
else:
yield name
elif os.path.isfile(location):
yield location
elif os.path.isdir(location):
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = {py27,py33,py34,py35,py36}-{native}
envlist = {py27,py33,py34,py35,py36,py37,py38,py39}-{native}

[testenv]
commands =
Expand Down

0 comments on commit 8774cc2

Please sign in to comment.