.. | |||||
__pycache__ | |||||
compat | |||||
__init__.py | |||||
_adapters.py | |||||
_collections.py | |||||
_compat.py | |||||
_functools.py | |||||
_itertools.py | |||||
_meta.py | |||||
_text.py | |||||
_typing.py | |||||
diagnose.py | |||||
py.typed |
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()
.. | |||||
__pycache__ | |||||
compat | |||||
__init__.py | |||||
_adapters.py | |||||
_collections.py | |||||
_compat.py | |||||
_functools.py | |||||
_itertools.py | |||||
_meta.py | |||||
_text.py | |||||
_typing.py | |||||
diagnose.py | |||||
py.typed |