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 <rep...@bugs.python.org> <http://bugs.python.org/issue28707> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com