this is my Python3 project hiearchy:
projet \\ script.py web \\ index.html
From script.py, I would like to run a
script.py
If you just want serve static file you can do it by running SimpleHTTPServer module using python 2:
python -m SimpleHTTPServer
Or with python 3:
python3 -m http.server
This way you do not need to write any script.