find location of library python code example
Example 1: python find location of module
import mymodule
mymodule.__file__
Example 2: find location of library python linux
import module_name
print(module_name.__file__)
import mymodule
mymodule.__file__
import module_name
print(module_name.__file__)