[fs] adds support for ~ in open_fs(...) implementation (using os.path.expanduser).

This commit is contained in:
Romain Dorgueil
2017-05-25 12:41:36 +02:00
parent a377639f94
commit 33498b2311

View File

@ -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