本文整理匯總了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()
示例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()
示例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()
示例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()
示例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()