title: Why does my python not add current working directory to the path?
body: <p>I keep seeing sites mentioning that the directory that you execute 'python ' get added to the python path. For example on <a href="http://www.stereoplex.com/blog/understanding-imports-and-pythonpath" rel="noreferrer">http://www.stereoplex.com/blog/understanding-imports-and-pythonpath</a>, the author cd's to the /tmp folder then does 'print(sys.path)' and lo and behold, the /tmp folder appears in the path list. Here is me trying this out on my system (with 2.6.6 installed):</p>
  
  <p>example structure:  </p>
  
  <pre><code>app/
    mymodule.py
    inner_folder/
      myscript.py
  </code></pre>
  
  <p>in myscript.py contains the line: </p>
  
  <pre><code>import mymodule.py
  </code></pre>
  
  <p>what I did:</p>
  
  <pre><code>cd app
  python inner_folder/myscript.py # ImportError
  </code></pre>
  
  <p>Since I am executing the interpreter from the app/ directory, shouldn't 'app' be added to the python path? This is how a lot of the docs I have been reading have specified the behaviour should be. </p>
  
  <p>Please enlighten!</p>
  
  <p>(I have temporarily solved this by manually adding the folder I want into the environment but don't want to rely on that forever. Since many sites say this can be done, I'd like to reproduce it for myself)</p>