Human: Python - how to refer to relative paths of resources when working with code repository Assistant: 
Here is some code to get a relative path of file 'my_file' into variable `fn`

fn = os.path.join(os.path.dirname(__file__), 'my_file')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.