petersieg wrote: ↑09 Jan 2024, 12:46(Your solution does not work under python 3.6 (import http gives error) and old Mac OS Lion - so I stick with my solution for my local copy)
It seems indeed that support for the directory argument (-d_ was added to http.server in version 3.7. Sigh.