File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
55and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
66
7+ ## [ 2.0.27] - Unreleased
8+
9+ ### Fixed for Winows paths #152
10+
711## [ 2.0.26] - 2018-07-26
812
913### Fixed
Original file line number Diff line number Diff line change 11"""Version, used in module and setup.py.
22"""
3- __version__ = "2.0.26 "
3+ __version__ = "2.0.27a0 "
Original file line number Diff line number Diff line change @@ -106,8 +106,9 @@ def __init__(
106106 if isinstance (root_path , bytes ):
107107 root_path = fsdecode (root_path )
108108 self .root_path = root_path
109- _root_path = fsdecode (fspath (root_path ))
110- _root_path = os .path .expanduser (os .path .expandvars (root_path ))
109+ _drive , _root_path = os .path .splitdrive (fsdecode (fspath (root_path )))
110+ _root_path = _drive + (_root_path or '/' ) if _drive else _root_path
111+ _root_path = os .path .expanduser (os .path .expandvars (_root_path ))
111112 _root_path = os .path .normpath (os .path .abspath (_root_path ))
112113 self ._root_path = _root_path
113114
You can’t perform that action at this time.
0 commit comments