コード例 #1
0
ファイル: project.py プロジェクト: j2labs/bpm
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
コード例 #2
0
ファイル: project.py プロジェクト: j2labs/bpm
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')