Skip to content

Instantly share code, notes, and snippets.

@msakai
Created October 20, 2022 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msakai/89caaca4f7ac48b026b8ae78d0b4c9b2 to your computer and use it in GitHub Desktop.
Save msakai/89caaca4f7ac48b026b8ae78d0b4c9b2 to your computer and use it in GitHub Desktop.
import sys
for mname, m in sys.modules.items():
fname = getattr(m, '__file__', None)
if fname is not None and fname.endswith('.so'):
print(f"{mname}: {fname}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment