Reading config files from a relative path is generally a bad idea. What about just passing in the conf object to the repo constructor? If you'd also like a way to read the standard configuration, you can still a function that does that.