I'm having an incomprehensible error in my code. os.path.join will work with all paths I try, except those started with t after 'RC4'. Here is an example:
>>> os.path.join('RC4\static\posts', '0.png')
'RC4\\static\\posts\\0.png'
>>> os.path.join('RC4\templates\posts', '0.png')
'RC4\templates\\posts\\0.png'
If I split the first string, it works:
>>> os.path.join('RC4', 'templates\posts', '0.png')
'RC4\\templates\\posts\\0.png'