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 

https://docs.python.org/3/library/http.server.html


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -