os.chdir(path) not working as expected due to path formatting in Python 2.6.5?
<p>I cannot <code>os.chdir(path)</code> in Python 2.6.5 under WindowsXP SP2. It works fine under CygWin and MAC OS X, but for WinXP regardless of <code>path</code> format, I always get this error:</p>

<p><code>AttributeError: 'str' object has no attribute 'chdir'</code>.  </p>

<p>I thought it was the problem with format of <code>path</code> but after trying <code>r"C:\WINDOWS"</code>, <code>'C:\WINDOWS'</code> and combinations of <code>\\</code>, <code>/</code> or even <code>"\"C:\Windows\""</code>, I gave up. With formatting I'm using <code>os.path.exists(path)</code> works perfectly fine...  </p>

<p>What I am missing here? What should I be aware of when working with paths consisting of white spaces?</p>

<p>Cheers,
Martin</p>
