python cwd windows backwards slash code example
Example 1: python forward and bachward seperators
s.replace('\\', '/')
Example 2: python forward and bachward seperators
import os
path = "C:\\temp\myFolder\example\\"
newPath = path.replace(os.sep, '/')
print newPath
Output:<< C:/temp/myFolder/example/ >>