Your IP : 3.145.61.142


Current Path : /opt/hc_python/lib/python3.8/site-packages/importlib_metadata/
Upload File :
Current File : //opt/hc_python/lib/python3.8/site-packages/importlib_metadata/diagnose.py

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()

?>