From 6a106f03ffd3053eda0ab695376b034a55f1c955 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 28 Jul 2019 11:22:34 +0100 Subject: [PATCH] [stream-refactor] make mitogen-fuse work on Linux --- examples/mitogen-fuse.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/mitogen-fuse.py b/examples/mitogen-fuse.py index d0cd9a3a..c1b17032 100644 --- a/examples/mitogen-fuse.py +++ b/examples/mitogen-fuse.py @@ -241,9 +241,13 @@ def main(router): print('usage: %s ' % sys.argv[0]) sys.exit(1) - blerp = fuse.FUSE( + kwargs = {} + if sys.platform == 'darwin': + kwargs['volname'] = '%s (Mitogen)' % (sys.argv[1],) + + f = fuse.FUSE( operations=Operations(sys.argv[1]), mountpoint=sys.argv[2], foreground=True, - volname='%s (Mitogen)' % (sys.argv[1],), + **kwargs )