you can use always:
this works both in linux and windows.
Other posibility is
if you have problems with some names you can also try raw string literals:
however best practice is to use the
os.path module functions that always select the correct configuration for your OS:
From python 3.4 you can also use the pathlib module. This is equivelent to the above:
pathlib.Path(mydir) / myfile