From 4f94d00abed73fa6bb24ff06af8dcc62c75a5d29 Mon Sep 17 00:00:00 2001 From: nejucomo Date: Fri, 6 Jun 2008 23:16:38 -0700 Subject: [PATCH] fuse: impl_b: Support --basedir on commandline. --- contrib/fuse/impl_b/pyfuse/tahoe.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) -- 2.45.2