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):
53
53
config_map = litConfig .params .get ('config_map' )
54
54
if config_map :
55
55
cfgpath = util .abs_path_preserve_drive (cfgpath )
56
- target = config_map .get (cfgpath )
56
+ target = config_map .get (os . path . normcase ( cfgpath ) )
57
57
if target :
58
58
cfgpath = target
59
59
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