Searched refs:current_parent (Results 1 – 2 of 2) sorted by relevance
71 current_parent = None74 result = native_util._find_parent(abs_path, current_parent)76 current_parent = 'a/b/c/d/e'77 result = native_util._find_parent(abs_path, current_parent)79 current_parent = 'a/b/c'80 expected = current_parent81 result = native_util._find_parent(abs_path, current_parent)83 current_parent = 'a/b/f'85 result = native_util._find_parent(abs_path, current_parent)
70 def _find_parent(abs_path, current_parent): argument81 if not current_parent:83 if common_util.is_source_under_relative_path(abs_path, current_parent):84 return current_parent85 if common_util.is_source_under_relative_path(current_parent, abs_path):88 os.path.dirname(abs_path), os.path.dirname(current_parent))