Assuming I have two Python modules and path_b is in the import path:
# file: path_b/my_module.py print \"I was imported from ???\" #file: path_a/app.py impo
If you want to see where a module is stored, for example setuptools, type in shell:
setuptools
$ python -c "import setuptools; print(setuptools.__file__)"