Skip to content

Commit 6b434d8

Browse files
Remove a redundant .resolve() for getting library cache paths (#17353)
1 parent 8b4443a commit 6b434d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def get_lib(self, libname, *args, **kwargs):
142142
# Request a cached file. If it isn't in the cache, it will be created with
143143
# the given creator function
144144
def get(self, shortname, creator, what=None, force=False):
145-
cachename = Path(self.dirname, shortname).resolve()
145+
cachename = Path(self.dirname, shortname)
146146
# Check for existence before taking the lock in case we can avoid the
147147
# lock completely.
148148
if cachename.exists() and not force:

0 commit comments

Comments
 (0)