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


Python fuse.__version__方法代码示例

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


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

示例1: main

# 需要导入模块: import fuse [as 别名]
# 或者: from fuse import __version__ [as 别名]
def main():

    usage = """
Userspace nullfs-alike: mirror the filesystem tree from some point on.

""" + fuse.Fuse.fusage

    server = AccessFS(version="%prog " + fuse.__version__,
                      usage=usage,
                      dash_s_do='setsingle')

    server.parser.add_option(mountopt="root", metavar="PATH", default='/',
                             help="mirror filesystem from under PATH [default: %default]")
    server.parse(values=server, errex=1)

    try:
        if server.fuse_args.mount_expected():
            os.chdir(server.root)
    except OSError:
        print("can't enter root of underlying filesystem", file=sys.stderr)
        sys.exit(1)

    server.main() 
开发者ID:apache,项目名称:allura,代码行数:25,代码来源:accessfs.py

示例2: main

# 需要导入模块: import fuse [as 别名]
# 或者: from fuse import __version__ [as 别名]
def main():
    global server

    usage = """
Userspace address_space_fuse: mount all process address spaces.

%prog [options] image_name mount_point
"""

    server = AddressSpaceFuse(version="%prog " + fuse.__version__,
                     usage=usage,
                     dash_s_do='setsingle')

    # Disable multithreading: if you want to use it, protect all method of
    # XmlFile class with locks, in order to prevent race conditions
    server.multithreaded = False

    server.parser.add_option("-p", "--profile", default="Win7SP1x64",
                             help="Profile to use [default: %default]")

    server.parse(values = server, errex=1)

    ## Try to fix up the mount point if it was given relative to the
    ## CWD
    if server.fuse_args.mountpoint and not os.access(os.path.join("/",server.fuse_args.mountpoint), os.W_OK):
        server.fuse_args.mountpoint = os.path.join(os.getcwd(), server.fuse_args.mountpoint)

    server.main() 
开发者ID:google,项目名称:rekall,代码行数:30,代码来源:address_space_fuse.py

示例3: main

# 需要导入模块: import fuse [as 别名]
# 或者: from fuse import __version__ [as 别名]
def main():
    usage = """
spreadsheetfs

""" + fuse.Fuse.fusage
    init_fs_data()
    server = SpreadsheetFS(version="%prog " + fuse.__version__,
                           usage=usage,
                           dash_s_do="setsingle")
    server.parse(errex=1)
    server.main() 
开发者ID:GunshipPenguin,项目名称:spreadsheetfs,代码行数:13,代码来源:main.py

示例4: main

# 需要导入模块: import fuse [as 别名]
# 或者: from fuse import __version__ [as 别名]
def main():
    server = DlnaFuse(version="%prog " + fuse.__version__,
                      usage="Run with './dlna_fuse -s -f <mount_point>' "
                            "to start live desktop capture",
                      dash_s_do="setsingle")
    server.parse(errex=1)
    server.main() 
开发者ID:mfoetsch,项目名称:dlna_live_streaming,代码行数:9,代码来源:dlna_fuse.py

示例5: main

# 需要导入模块: import fuse [as 别名]
# 或者: from fuse import __version__ [as 别名]
def main(args=None):
    usage="""
    pCacheFS: A persistently caching filesystem.
    """ + fuse.Fuse.fusage

    version = "%prog " + fuse.__version__

    server = PersistentCacheFs(version=version, usage=usage, dash_s_do='setsingle')

    parsed_args = server.parse(args, errex=1)
    if not parsed_args.getmod('showhelp'):
        server.main() 
开发者ID:ibizaman,项目名称:pcachefs,代码行数:14,代码来源:pcachefs.py


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