@djangoproject · Post #145 · 02.09.2016 г., 03:28
https://docs.python.org/3/library/modulefinder.html This module provides a #ModuleFinder class that can be used to determine the set of #modules#imported by a #script. modulefinder.py can also be run as a script, giving the #filename of a Python script as its argument, after which a report of the imported modules will be printed.