Yes you have the __FILE__ keyword. That evaluates to the filename of
the file that contains it. So, its value is per file.

In a case like yours it is normal to rely on __FILE__ and a known
project structure to go for stuff thus avoiding config files.