title: Python SimpleHTTPServer serve a subdirectory
body: <p>Is it possible to serve a subdirectory instead of the current directory with SimpleHTTPServer ?</p>
  
  <p>I use it from the command-line like so:</p>
  
  <pre><code>python -m SimpleHTTPServer 5002
  </code></pre>
  
  <p>The reason I would like to use this is that I have a <code>target</code> folder which I delete from time to time and is regenerated by my tooling. However when I do that I need to restart the SimpleHTTPServer as well. I think that serving it from the parent repository would allow me not to restart it.</p>