Skip to content

Commit 712bd2c

Browse files
committed
expand user in osfs opener
1 parent fb5e453 commit 712bd2c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fs/opener/osfs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class OSFSOpener(Opener):
1212

1313
def open_fs(self, fs_url, parse_result, writeable, create, cwd):
1414
from ..osfs import OSFS
15-
from os.path import abspath, normpath, join
16-
_path = abspath(join(cwd, parse_result.resource))
15+
from os.path import abspath, expanduser, normpath, join
16+
_path = abspath(join(cwd, expanduser(parse_result.resource)))
1717
path = normpath(_path)
1818
osfs = OSFS(path, create=create)
1919
return osfs

0 commit comments

Comments
 (0)