Closed greenbreakfast closed 3 years ago
@vsemi need your help to wrap the existing contents of server.py into a function
Moved everything into main function.
@greenbreakfast content of server.py wrapped into main function, will you try build and upload if it works?
@vsemi thanks! I followed the python packaging guide linked above and now we can start the server by running python -m TauLidarServer
(as long as the package is installed).
See the updated development guide for instructions on how to install locally and run it.
The only problem is the web-server hosts the directory where the
python -m TauLidarServer
command is run, and not the directory with our index.htmlI'll look into fixing that.
EDIT: commit c57e6d7 fixes the issue. Runs as expected now!
User Story
python -m TauLidarServer
Context
To be able to package this module, we first need to wrap the existing contents of server.py into a function.
References
python -m