From 2b42ba9dda3c9d1a855f914e90f46f9decc6ec8e Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Wed, 10 Aug 2005 00:10:43 +0000 Subject: [PATCH] fix a tb --- src/common/helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/helpers.py b/src/common/helpers.py index bef3ca0a1..7713f9c63 100644 --- a/src/common/helpers.py +++ b/src/common/helpers.py @@ -169,7 +169,8 @@ 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 - is_in_dir = name_of_command in contents + else: + is_in_dir = name_of_command in contents if is_in_dir: if return_abs_path: found_in_which_dir = path_to_directory