Escape sequence in path
<pre><code>source = "C:\Program Files (x86)\xxx\yyy\Agent\node.default\blr-w2k8-252\data\somefile.iso"
print source
</code></pre>

<p>output: </p>

<pre><code>"C:\Program Files (x86)\xxx\yyy\Agent
 ode.defaulblr-w2k8-252\data\somefile.iso"
</code></pre>

<p>Notice that for <code>\n</code>ode  I got a new line and deaful<code>t\</code>blr is gone</p>

<p>I did <code>source=source.replace('\\', '/')</code>  but got same output even <code>/n</code> is also causing new line.</p>

<p>I did <code>source=source.encode('string-escape')</code> now the output is something else</p>

<p>output: </p>

<pre><code>"C:\\Program Files (x86)\\xxx\\yyy\\Agent\node.default\x08lr-w2k8-252\\data\\somefile.iso"
</code></pre>

<p>Only a raw string is working i.e</p>

<pre><code>source=r"C:\Program Files (x86)\xxx\yyy\Agent\node.default\blr-w2k8-252\data\somefile.iso"
</code></pre>

<p>But in my program I only have the string variable. How to make it work or how to make the string variable as raw ?</p>
