parent
a113101126
commit
689c1d2f0c
@ -239,7 +239,7 @@ def which(*args, **kwargs):
|
|||||||
Returns:
|
Returns:
|
||||||
Executable: The first executable that is found in the path
|
Executable: The first executable that is found in the path
|
||||||
"""
|
"""
|
||||||
path = kwargs.get('path', os.environ.get('PATH'))
|
path = kwargs.get('path', os.environ.get('PATH', ''))
|
||||||
required = kwargs.get('required', False)
|
required = kwargs.get('required', False)
|
||||||
|
|
||||||
if isinstance(path, string_types):
|
if isinstance(path, string_types):
|
||||||
|
Loading…
Reference in New Issue
Block a user