本文整理汇总了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()