diff --git a/HT3/sw/lib/ht_utils.py b/HT3/sw/lib/ht_utils.py index 24acc8b..4ccdecd 100755 --- a/HT3/sw/lib/ht_utils.py +++ b/HT3/sw/lib/ht_utils.py @@ -177,7 +177,7 @@ def MakeAbsPath2FileName(self, tpl_path_and_filename, find_separator='/sw'): else: current_path = os.path.abspath('.') find_index = current_path.find(find_separator) - sliced_path = current_path[0:find_index] + sliced_path = current_path if find_index > 0 and len(current_path) > 2: sliced_path = current_path[0:find_index + len(find_separator)] my_abspath = os.path.abspath(os.path.join(sliced_path, path))