codekingpro/portable-devtools
114k
1import sys2 3from . import Distribution4 5 6def inspect(path):7 print("Inspecting", path)8 dists = list(Distribution.discover(path=[path]))9 if not dists:10 return11 print("Found", len(dists), "packages:", end=' ')12 print(', '.join(dist.name for dist in dists))13 14 15def run():16 for path in sys.path:17 inspect(path)18 19 20if __name__ == '__main__':21 run()22 