Module with absolute Path constants within Package packaged with setuptools
I have a medium size python package and I use setuptools to build a wheel. The package is meant to be a convenience library for a fortran program. I now would like to define a constant which gives the Path to the fortran executable (which lives close to my setup.py) within my python package which I can access from any installation of my wheel. I am aware that things with resolving __file__
in a constants module won’t work since this then would be the installation directory of my package.