bitter-ability-32190
01/13/2022, 6:18 PMin_repo_plugin_sources: Set[str] = set()
for filename in source_files.files:
path = pathlib.PurePath(filename)
for source_root in source_roots:
try:
relpath = path.relative_to(source_root.path)
except ValueError:
continue
modname = str(relpath.with_suffix("")).replace("/", ".")
if modname in sys.modules:
in_repo_plugin_sources.add(filename)