You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
379 B
22 lines
379 B
9 months ago
|
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()
|