A
Ajay
hi!
I am developing an application for a pocket pc.
i have a small gui which allows users to select files using a file dialog
box. however the file, selected is represented as '/My Documents/test'
which when i try to open gives me an error.
so what i would like to do is replace '/' by the windows '\'
however when i try
str='/My Documents/test'
re.subn('/', '\', str)
i get an error saying - SyntaxError: EOL while scanning single-quoted
string
how can i replace the slashes.
thanks
cheers
I am developing an application for a pocket pc.
i have a small gui which allows users to select files using a file dialog
box. however the file, selected is represented as '/My Documents/test'
which when i try to open gives me an error.
so what i would like to do is replace '/' by the windows '\'
however when i try
str='/My Documents/test'
re.subn('/', '\', str)
i get an error saying - SyntaxError: EOL while scanning single-quoted
string
how can i replace the slashes.
thanks
cheers