Python fuse.__version__() Examples
The following are 5
code examples of fuse.__version__().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
fuse
, or try the search function
.
Example #1
Source File: accessfs.py From allura with Apache License 2.0 | 6 votes |
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()
Example #2
Source File: address_space_fuse.py From rekall with GNU General Public License v2.0 | 5 votes |
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()
Example #3
Source File: main.py From spreadsheetfs with MIT License | 5 votes |
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()
Example #4
Source File: dlna_fuse.py From dlna_live_streaming with GNU General Public License v2.0 | 5 votes |
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()
Example #5
Source File: pcachefs.py From pcachefs with Apache License 2.0 | 5 votes |
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()