Using the package psutil it is (now) even possible to get a portable solution! :-)
# e.g. finding the shared libs (dll/so) our python process loaded so far ...
import psutil, os
p = psutil.Process( os.getpid() )
for dll in p.memory_maps():
print dll.path
Using the package psutil it is (now) even possible to get a portable solution! :-)
Using listdlls: