Apr-21-2019, 03:28 AM
i would like to know of a script that can be given the name of a particular module to look for and the path names of a bunch of Python source files (some do not have ".py" at the end), and it will determine while files, when run as Python, could import that module, or from that module, import parts of it. it would not need to check flow of control conditions, though it could be helpful if some of the more obvious are checked, such as in
if False:
and such. but it does need to handle the variety of ways to code doing an import and parse all the names involved.