python - Access local files from locally running http server -
i want access files in local machine using urls. example "file:///usr/local/home/thapaliya/constants.py". best way achieve this?
use simple http server:
python -m http.server 8000
or python 2:
python -m simplehttpserver 8000
Comments
Post a Comment