File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -408,7 +408,7 @@ class FastPath:
408408
409409 def __init__ (self , root ):
410410 self .root = root
411- self ._root_n_low = os .path .split (root )[ 1 ] .lower ()
411+ self .base = os .path .basename (root ).lower ()
412412
413413 def joinpath (self , child ):
414414 return pathlib .Path (self .root , child )
@@ -431,11 +431,11 @@ def zip_children(self):
431431 )
432432
433433 def is_egg (self , search ):
434- root_n_low = self ._root_n_low
434+ base = self .base
435435 return (
436- root_n_low == search .versionless_egg_name
437- or root_n_low .startswith (search .prefix )
438- and root_n_low .endswith ('.egg' ))
436+ base == search .versionless_egg_name
437+ or base .startswith (search .prefix )
438+ and base .endswith ('.egg' ))
439439
440440 def search (self , name ):
441441 for child in self .children ():
You can’t perform that action at this time.
0 commit comments