Is there any way to set the directory where you want to start a SimpleHTTPServer or BaseHTTPServer?
Thanks
Is there any way to set the directory where you want to start a SimpleHTTPServer or BaseHTTPServer?
Thanks
If you're using SimpleHTTPServer directly from command line, you can simply use shell features:
pushd /path/you/want/to/serve; python -m SimpleHTTPServer; popd