Lines Matching refs:root_dir
771 root_dir = project_dir
772 one_up_dir = os.path.dirname(root_dir)
774 root_dir = os.path.dirname(root_dir)
777 prefix = os.path.commonprefix([root_dir, project_dir])
782 root_dir = os.path.dirname(fullname)
783 while (root_dir != os.path.dirname(root_dir) and
784 not os.path.exists(os.path.join(root_dir, ".git")) and
785 not os.path.exists(os.path.join(root_dir, ".hg")) and
786 not os.path.exists(os.path.join(root_dir, ".svn"))):
787 root_dir = os.path.dirname(root_dir)
789 if (os.path.exists(os.path.join(root_dir, ".git")) or
790 os.path.exists(os.path.join(root_dir, ".hg")) or
791 os.path.exists(os.path.join(root_dir, ".svn"))):
792 prefix = os.path.commonprefix([root_dir, project_dir])