From 33498b231116a6041209ed6446d93c36daa7c64d Mon Sep 17 00:00:00 2001 From: Romain Dorgueil Date: Thu, 25 May 2017 12:41:36 +0200 Subject: [PATCH] [fs] adds support for ~ in open_fs(...) implementation (using os.path.expanduser). --- bonobo/_api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bonobo/_api.py b/bonobo/_api.py index 5554fef..ca5f363 100644 --- a/bonobo/_api.py +++ b/bonobo/_api.py @@ -83,7 +83,9 @@ def open_fs(fs_url, *args, **kwargs): :returns: :class:`~fs.base.FS` object """ from fs import open_fs as _open_fs - return _open_fs(str(fs_url), *args, **kwargs) + from os.path import expanduser + + return _open_fs(expanduser(str(fs_url)), *args, **kwargs) # bonobo.nodes