File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ def search1(path):
5353 config_map = litConfig .params .get ('config_map' )
5454 if config_map :
5555 cfgpath = util .abs_path_preserve_drive (cfgpath )
56- target = config_map .get (cfgpath )
56+ target = config_map .get (os . path . normcase ( cfgpath ) )
5757 if target :
5858 cfgpath = target
5959
Original file line number Diff line number Diff line change @@ -138,12 +138,12 @@ def abs_path_preserve_drive(path):
138138 # Since Python 3.8, os.path.realpath resolves sustitute drives,
139139 # so we should not use it. In Python 3.7, os.path.realpath
140140 # was implemented as os.path.abspath.
141- return os .path .normpath ( os . path . abspath (path ) )
141+ return os .path .abspath (path )
142142 else :
143143 # On UNIX, the current directory always has symbolic links resolved,
144144 # so any program accepting relative paths cannot preserve symbolic
145145 # links in paths and we should always use os.path.realpath.
146- return os .path .normpath ( os . path . realpath (path ) )
146+ return os .path .realpath (path )
147147
148148def mkdir (path ):
149149 try :
You can’t perform that action at this time.
0 commit comments