AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 3.143.237.54


Current Path : /snap/core20/current/usr/share/bash-completion/helpers/
Upload File :
Current File : //snap/core20/current/usr/share/bash-completion/helpers/python

# -*- python -*-

import pkgutil
import sys

# walk_packages() is much slower than iter_modules(), use it only when
# completing something with a dot in it.
if len(sys.argv) > 1 and "." in sys.argv[1]:
    walker = pkgutil.walk_packages
else:
    walker = pkgutil.iter_modules

for mod in walker():
    print (mod[1])  # noqa: E211