How do I access files in same directory as executable? (Python Catkin)
I have a python catkin package in which I am trying to run some shell files kept in the same src
folder as my main executable python file start.py
.
However, unless I do rosrun
from the src
folder, the python code is unable to find the shell files for execution. I keep getting a File Not Found
error on my script.
I tried adding these to the include
folder and updated my CMakeLists.txt
but that didn't work. How do I access these shell files?