This commit is contained in:
Nikos Kouremenos 2005-08-10 00:10:43 +00:00
parent 637351b3b6
commit 2b42ba9dda
1 changed files with 2 additions and 1 deletions

View File

@ -169,6 +169,7 @@ def is_in_path(name_of_command, return_abs_path = False):
contents = os.listdir(path_to_directory)
except OSError: # user can have something in PATH that is not a dir
pass
else:
is_in_dir = name_of_command in contents
if is_in_dir:
if return_abs_path: