find location of imported module python code example Example: python find location of module import mymodule mymodule.__file__