當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。