Skip to content

Commit 6a106f0

Browse files
committed
[stream-refactor] make mitogen-fuse work on Linux
1 parent fc57c1d commit 6a106f0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

examples/mitogen-fuse.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,13 @@ def main(router):
241241
print('usage: %s <host> <mountpoint>' % sys.argv[0])
242242
sys.exit(1)
243243

244-
blerp = fuse.FUSE(
244+
kwargs = {}
245+
if sys.platform == 'darwin':
246+
kwargs['volname'] = '%s (Mitogen)' % (sys.argv[1],)
247+
248+
f = fuse.FUSE(
245249
operations=Operations(sys.argv[1]),
246250
mountpoint=sys.argv[2],
247251
foreground=True,
248-
volname='%s (Mitogen)' % (sys.argv[1],),
252+
**kwargs
249253
)

0 commit comments

Comments
 (0)