summaryrefslogtreecommitdiff
path: root/fs/opener.py
diff options
context:
space:
mode:
authorwillmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f>2011-11-23 16:31:34 +0000
committerwillmcgugan <willmcgugan@67cdc799-7952-0410-af00-57a81ceafa0f>2011-11-23 16:31:34 +0000
commit87a736d53aaf2f1c7af43945008e2536d743b7b0 (patch)
tree4b1da1c55a89475e161a7457b15a200ca9abe74b /fs/opener.py
parent0ae89aa35e091138c058f98eca0edbc4bcb0ed29 (diff)
downloadpyfilesystem-git-87a736d53aaf2f1c7af43945008e2536d743b7b0.tar.gz
Support for Windows long paths in opener, and multifs fix
Diffstat (limited to 'fs/opener.py')
-rw-r--r--fs/opener.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/opener.py b/fs/opener.py
index 08aad1e..7b6ad75 100644
--- a/fs/opener.py
+++ b/fs/opener.py
@@ -84,6 +84,8 @@ class NoOpenerError(OpenerError):
def _expand_syspath(path):
if path is None:
return path
+ if path.startswith('\\\\?\\'):
+ path = path[4:]
path = os.path.expanduser(os.path.expandvars(path))
path = os.path.normpath(os.path.abspath(path))
return path