python package path code example
Example 1: find location of library python linux
import module_name
print(module_name.__file__)
Example 2: python get packages path
path = os.path.dirname(a_module.__file__)
import module_name
print(module_name.__file__)
path = os.path.dirname(a_module.__file__)