Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> --directory .

Huh, neat! Did’t know it supported that. (python3 -m http.server will default to current directory anyway though)



Yes! I often use a command like this to test my statically generated website locally using a command like this:

  python3 -m http.server -d _site/
Example: https://github.com/susam/susam.net/blob/0.3.0/Makefile#L264-...




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: