Loaded modules and their path



examples/modules/loaded_modules.py
for mod in sorted(sys.modules.keys()):
    try:
        print(mod, sys.modules[mod].__file__)
    except Exception as err:
        print(mod)