How can I know the importing node path of a module?
For example, if I do
import xxx.xxx
Then somehow module yyy
gets imported.
How can I know the path of the imports of yyy
? something like
xxx.xxx -> zzz -> aaa -> yyy
How can I know the importing node path of a module?
For example, if I do
import xxx.xxx
Then somehow module yyy
gets imported.
How can I know the path of the imports of yyy
? something like
xxx.xxx -> zzz -> aaa -> yyy
If you start Python with the -vv
flag then you will see verbose logs, including everything it tries to import.
Just to know the path using python just use
import sys
print(sys.path)
check all the modules available in site-packages only if you want to explore libraries manually