Open file in a relative location in Python

Suppose my python code is executed a directory called main and the application needs to access main/2091/data.txt. how should I use open(location)? what should the parameter location be? I found that