fix a tb
This commit is contained in:
parent
637351b3b6
commit
2b42ba9dda
|
@ -169,6 +169,7 @@ def is_in_path(name_of_command, return_abs_path = False):
|
||||||
contents = os.listdir(path_to_directory)
|
contents = os.listdir(path_to_directory)
|
||||||
except OSError: # user can have something in PATH that is not a dir
|
except OSError: # user can have something in PATH that is not a dir
|
||||||
pass
|
pass
|
||||||
|
else:
|
||||||
is_in_dir = name_of_command in contents
|
is_in_dir = name_of_command in contents
|
||||||
if is_in_dir:
|
if is_in_dir:
|
||||||
if return_abs_path:
|
if return_abs_path:
|
||||||
|
|
Loading…
Reference in New Issue