title: How does a Python command like "pserve" determine which virtual environment to run from?
body: <p>I'm using Windows.</p>
  
  <p>I successfully ran the following command in command prompt:</p>
  
  <pre><code>C:\projects\quick_tutorial\env\Scripts\cc_starter&gt;pserve development.ini --reload
  </code></pre>
  
  <p>The <code>pserve</code> application can be found in at least 2 locations on my machine:</p>
  
  <ol>
  <li><code>C:\projects\quick_tutorial\env\Scripts</code></li>
  <li><code>C:\Python34\Scripts</code></li>
  </ol>
  
  <p><strong>Questions:</strong></p>
  
  <ol>
  <li>I ran <code>pserve</code> from a folder that doesn't contain the <code>pserve</code> application. How is it determined which <code>pserve</code> should start the <code>development.ini</code> file?</li>
  <li>How is it determined which Python module / environment should be used to run my "cc_starter" project? I'm confused, because I read here: <a href="https://stackoverflow.com/questions/12184846/where-should-virtualenvs-be-created">Where should virtualenvs be created?</a> that it doesn't matter where virtual environments are created; so is it the location of the <code>pserve</code> application that determines the virtual environment used to run my project? or a command line within one of the files in my "cc_starter" project?</li>
  </ol>
  
  <p>For reference, I'm following the <a href="http://docs.pylonsproject.org/projects/pyramid/en/latest/quick_tutorial/cookiecutters.html" rel="nofollow noreferrer">Quick Tutorial for Pyramid</a></p>