I have a Python package that includes a shell script. When the shell script is called, it needs to access other files that are part of the installation. I include the script in my setup.py
as
scripts=['source_dir/utils/mybashscript'],
The problem now is that it will end up in virtualenv_dir/bin/
. What I would want to do is get the absolute path to where the source_dir/utils/
directory ends up after installation from within mybashscript
.
Is there a workaround for this?
It's a rather standard python package setup like
mypackage/
| -- setup.py
| -- source_dir/
| | -- utils/
| | | -mybashscript