In my program I want to read file placed in specific sub directory of my repository.
I use relative path to do so. But the problem is that if I execute my binary file from other directory it obviously does not work. I also don't want to use absolute path, cause someone may install my repository in other place. Is there are any way to solve this problem using C++ or may be some through some setup script?
UPD: on linux