def find_settings(): """This function attempts to discover the full path to a Brubeck project's settings file. """ root_path = os.getcwd() path = walk_up_until(root_path, 'settings/') if path: return path
def find_skel_dir(root_path): """Walks up from root_path, looking for a directory that matches the expected bpm skeleton directory path. """ root_path = os.path.dirname(os.path.abspath(__file__)) return walk_up_until(root_path, 'share/bpm/skel')