I have a requirement in which i have to specify a file path of an object (say 'abcd.jpg'). I am able to find the path with os module in python. But it contains '\\' as a separator. How to convert this separator to '\'.
>>> import os
>>> a = os.getcwd() + '\\' + 'abcd.jpg'
>>> a
'C:\\Python27\\abcd.jpg'
In my script i am only allowed to write the path name as 'C:\Python27\abcd.jpg'