python packages path code example
Example 1: python get packages path
path = os.path.dirname(a_module.__file__)
Example 2: python global site packages
python -m site
path = os.path.dirname(a_module.__file__)
python -m site