Lines Matching refs:start_dir
21 def FindAncestor(start_dir, ancestor):
27 start_dir = os.path.abspath(start_dir)
28 path = start_dir
36 raise PathNotFound("Unable to find ancestor %s in %s" % (ancestor, start_dir))
38 def FindUpwardParent(start_dir, *desired_list):
39 """Finds the desired object's parent, searching upward from the start_dir.
41 Searches start_dir and all its parents looking for the desired directory
48 cur_dir = start_dir
55 (desired_path, start_dir))
65 def FindUpward(start_dir, *desired_list):
68 Searches start_dir and all its parents looking for the desired directory
72 parent = FindUpwardParent(start_dir, *desired_list)