0

is there a way to quickly find out who imported a given python module? For example, there is a python module named common.py, I want to find out the whole list of python modules that imported the common.py file.

The project has many files with the same name (there are other files also named common.py). I am interested whether there is any automatic tool.

Thanks.

Dachuan Huang
  • 115
  • 1
  • 8
  • Your question seems like a duplicate of [this question](https://stackoverflow.com/questions/35796968/get-all-modules-packages-used-by-a-python-project) – Bunyod Shams Nov 15 '22 at 04:18
  • I feel they are two different questions: I am looking for a static way. The above link you pasted assumes there is a binary? – Dachuan Huang Nov 16 '22 at 17:46

0 Answers0