title: current working directory mismatch in python
body: <p>I have imported a existing filesystem folder as the new project folder in eclipse. I have a script which get the current working directory path of the code. I need to change directory location to acccess files in other directory related to it. But It is giving different value when executed from eclipse and from the command line. Location is same in both place. Please help me resolve this issue. Operating system is windows here</p>
  
  <pre><code>import os
  print os.getcwd()
  os.chdir(os.path.dirname(os.getcwd()))
  print os.getcwd()
  </code></pre>
  
  <p>One result is this </p>
  
  <pre><code>C:\Automation\trunk\Base\TestScripts
  C:\Automation\trunk\Base
  </code></pre>
  
  <p>Other result is this </p>
  
  <pre><code>C:\Automation\trunk\UsefulScripts
  C:\Automation\trunk
  </code></pre>
  
  <p>Second result is the one I expect, and that is where the code is located exactly.</p>