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 @@ -57,7 +57,7 @@ def search1(path):
57
57
config_map = litConfig .params .get ("config_map" )
58
58
if config_map :
59
59
cfgpath = util .abs_path_preserve_drive (cfgpath )
60
- target = config_map .get (cfgpath )
60
+ target = config_map .get (os . path . normcase ( cfgpath ) )
61
61
if target :
62
62
cfgpath = target
63
63
Original file line number Diff line number Diff line change @@ -138,12 +138,12 @@ def abs_path_preserve_drive(path):
138
138
# Since Python 3.8, os.path.realpath resolves sustitute drives,
139
139
# so we should not use it. In Python 3.7, os.path.realpath
140
140
# was implemented as os.path.abspath.
141
- return os .path .normpath ( os . path . abspath (path ) )
141
+ return os .path .abspath (path )
142
142
else :
143
143
# On UNIX, the current directory always has symbolic links resolved,
144
144
# so any program accepting relative paths cannot preserve symbolic
145
145
# 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 )
147
147
148
148
def mkdir (path ):
149
149
try :
You can’t perform that action at this time.
0 commit comments