writePath = r'\this\is\a\test'
print writePath.replace('\\', '/')
>>> '/this/is/a/test'
On Tue, Jun 5, 2012 at 4:11 PM, Noggy <[email protected]>wrote:
> **
> I'm trying to replace the back slashes with forward slashes and it's not
> working.
>
> writePath.replace('/', '\\')
>
> I thought you had to double up the back slashes when using string
> quotations. I don't get any errors but the string isn't changed.
>
> _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python