Targoyle on Nostr: /run python import pkgutil def list_installed_packages(): installed_packages = ...
/run python
import pkgutil
def list_installed_packages():
installed_packages = sorted([package.name for package in pkgutil.iter_modules()])
for package in installed_packages:
print(package, end=',')
list_installed_packages()
import pkgutil
def list_installed_packages():
installed_packages = sorted([package.name for package in pkgutil.iter_modules()])
for package in installed_packages:
print(package, end=',')
list_installed_packages()