mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-01-06 11:09:57 -08:00
e248c13c15
* Bump importlib-metadata from 6.8.0 to 7.1.0 Bumps [importlib-metadata](https://github.com/python/importlib_metadata) from 6.8.0 to 7.1.0. - [Release notes](https://github.com/python/importlib_metadata/releases) - [Changelog](https://github.com/python/importlib_metadata/blob/main/NEWS.rst) - [Commits](https://github.com/python/importlib_metadata/compare/v6.8.0...v7.1.0) --- updated-dependencies: - dependency-name: importlib-metadata dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Update importlib-metadata==7.1.0 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> [skip ci]
22 lines
379 B
Python
22 lines
379 B
Python
import sys
|
|
|
|
from . import Distribution
|
|
|
|
|
|
def inspect(path):
|
|
print("Inspecting", path)
|
|
dists = list(Distribution.discover(path=[path]))
|
|
if not dists:
|
|
return
|
|
print("Found", len(dists), "packages:", end=' ')
|
|
print(', '.join(dist.name for dist in dists))
|
|
|
|
|
|
def run():
|
|
for path in sys.path:
|
|
inspect(path)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
run()
|