Skip to content

Commit 94749be

Browse files
Update pattern to filter out path like __pycache__/valid_before_this_commit
1 parent ee67824 commit 94749be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/configuration/search_path.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
_site_filter = re.compile(r".*-([0-99]\.)*dist-info")
3434

3535
# pyre-fixme[5]: Globally accessible variable `_PYCACHE` has type `re.Pattern[str]` but no type is specified.
36-
_PYCACHE = re.compile("__pycache__")
36+
_PYCACHE = re.compile("__pycache__(/)*.*")
3737

3838

3939
def _expand_relative_root(path: str, relative_root: str) -> str:
@@ -86,7 +86,7 @@ def package_path(self) -> str:
8686
return self.package_name
8787

8888
this_pkg_filter = re.compile(
89-
r"{}-([0-99]\.)*dist-info".format(self.package_name)
89+
r"{}-([0-99]\.)*dist-info(/)*.*".format(self.package_name)
9090
)
9191

9292
if self.site_root not in dist_info_in_root:

0 commit comments

Comments
 (0)