Removed the Requirement to Install Python and NodeJS (Now Bundled with Borealis)
This commit is contained in:
21
Dependencies/Python/Lib/importlib/metadata/diagnose.py
vendored
Normal file
21
Dependencies/Python/Lib/importlib/metadata/diagnose.py
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
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()
|
Reference in New Issue
Block a user