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

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

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