当前位置: 首页>>代码示例>>Python>>正文


Python framework.framework_info方法代码示例

本文整理汇总了Python中framework.framework_info方法的典型用法代码示例。如果您正苦于以下问题:Python framework.framework_info方法的具体用法?Python framework.framework_info怎么用?Python framework.framework_info使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在framework的用法示例。


在下文中一共展示了framework.framework_info方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: dyld_override_search

# 需要导入模块: import framework [as 别名]
# 或者: from framework import framework_info [as 别名]
def dyld_override_search(name, env=None):
    # If DYLD_FRAMEWORK_PATH is set and this dylib_name is a
    # framework name, use the first file that exists in the framework
    # path if any.  If there is none go on to search the DYLD_LIBRARY_PATH
    # if any.

    framework = framework_info(name)

    if framework is not None:
        for path in dyld_framework_path(env):
            yield os.path.join(path, framework['name'])

    # If DYLD_LIBRARY_PATH is set then use the first file that exists
    # in the path.  If none use the original name.
    for path in dyld_library_path(env):
        yield os.path.join(path, os.path.basename(name)) 
开发者ID:glmcdona,项目名称:meddle,代码行数:18,代码来源:dyld.py

示例2: dyld_default_search

# 需要导入模块: import framework [as 别名]
# 或者: from framework import framework_info [as 别名]
def dyld_default_search(name, env=None):
    yield name

    framework = framework_info(name)

    if framework is not None:
        fallback_framework_path = dyld_fallback_framework_path(env)
        for path in fallback_framework_path:
            yield os.path.join(path, framework['name'])

    fallback_library_path = dyld_fallback_library_path(env)
    for path in fallback_library_path:
        yield os.path.join(path, os.path.basename(name))

    if framework is not None and not fallback_framework_path:
        for path in DEFAULT_FRAMEWORK_FALLBACK:
            yield os.path.join(path, framework['name'])

    if not fallback_library_path:
        for path in DEFAULT_LIBRARY_FALLBACK:
            yield os.path.join(path, os.path.basename(name)) 
开发者ID:glmcdona,项目名称:meddle,代码行数:23,代码来源:dyld.py


注:本文中的framework.framework_info方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。