From: nejucomo Date: Sat, 7 Jun 2008 06:16:38 +0000 (-0700) Subject: fuse: impl_b: Support --basedir on commandline. X-Git-Tag: allmydata-tahoe-1.1.0~40 X-Git-Url: https://git.rkrishnan.org/install.html?a=commitdiff_plain;h=4f94d00abed73fa6bb24ff06af8dcc62c75a5d29;p=tahoe-lafs%2Ftahoe-lafs.git fuse: impl_b: Support --basedir on commandline. --- diff --git a/contrib/fuse/impl_b/pyfuse/tahoe.py b/contrib/fuse/impl_b/pyfuse/tahoe.py index 06712f09..835876fe 100644 --- a/contrib/fuse/impl_b/pyfuse/tahoe.py +++ b/contrib/fuse/impl_b/pyfuse/tahoe.py @@ -101,6 +101,11 @@ def main(mountpoint, basedir): handler.loop_forever() if __name__ == '__main__': - [mountpoint] = sys.argv[1:] basedir = os.path.expanduser(TahoeConfigDir) + for i, arg in enumerate(sys.argv): + if arg == '--basedir': + basedir = sys.argv[i+1] + sys.argv[i:i+2] = [] + + [mountpoint] = sys.argv[1:] main(mountpoint, basedir)