python3 package find path code example
Example 1: python get packages path
path = os.path.dirname(a_module.__file__)
Example 2: how to get module path in python
import a_module
print(a_module.__file__)
path = os.path.dirname(a_module.__file__)
import a_module
print(a_module.__file__)