[New-bugs-announce] [issue28707] add 'directory' option to the http.server module

Stéphane Wirtel report at bugs.python.org
Tue Nov 15 17:31:49 EST 2016


New submission from Stéphane Wirtel:

When we execute the http.server module, the tool will use the current directory (os.getcwd()) but sometimes we would like to specify a directory on the command line. 

With the next patch, I try to fix this missing feature ;-)

Just with python -m http.server -d /tmp

by default the system will use the current directory.
if necessary, I will show an error if the directory does not exist.

----------
files: chdir-httpserver.diff
keywords: patch
messages: 280898
nosy: matrixise
priority: normal
severity: normal
status: open
title: add 'directory' option to the http.server module
versions: Python 3.6, Python 3.7
Added file: http://bugs.python.org/file45493/chdir-httpserver.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28707>
_______________________________________


More information about the New-bugs-announce mailing list