title: Python: os.getcwd() unchanged after refactor file location
body: <p>Saying I create <code>a.py</code> under <code>path/to/somewhere/</code>. And later in the IDE(pycharm), I refactor it to <code>path/to/another_place/</code>.</p>
  
  <p>But when I run <code>a.py</code> later, <code>os.getcwd()</code> show its working directory is still in <code>path/to/somewhere</code>. ( <code>os.listdir('.')</code> also show it is in original place.)</p>
  
  <p>The following picture is what I meet <a href="https://i.stack.imgur.com/XuwfO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XuwfO.png" alt="picture"></a>, <code>makeimg.py</code> is originally in <code>learn_function</code></p>
  
  <p>I am new to python and I don't understand how a file/modoule locate itself.</p>
  
  <p>Am I do something wrong? or it is a bug?</p>