I think you're looking for `os.sep` for the `"\\"` or just `os.path.join(os.path.dirname(fn), main_file)` to be platform independent. Can you add a new commit to this pull request?