Changeset View
Changeset View
Standalone View
Standalone View
swh/fuse/cli.py
Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | \b | ||||
$ | $ | ||||
""" | """ | ||||
from swh.fuse import fuse | from swh.fuse import fuse | ||||
with ExitStack() as stack: | with ExitStack() as stack: | ||||
if not foreground: | if not foreground: | ||||
stack.enter_context(DaemonContext()) | # Stay in the current working directory when spawning daemon | ||||
cwd = os.getcwd() | |||||
stack.enter_context(DaemonContext(working_directory=cwd)) | |||||
asyncio.run(fuse.main(swhids, path, ctx.obj["config"])) | asyncio.run(fuse.main(swhids, path, ctx.obj["config"])) |