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