lepture / python-livereload

livereload server in python
https://livereload.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
1.02k stars 150 forks source link

Run as `python -m livereload` #245

Open zommerfelds opened 3 years ago

zommerfelds commented 3 years ago

I'm currently struggling to run livereload on my Windows system (I'm more of a Linux user) without having to specify the full path in AppData.

I realized it would be useful to be able to run this packages as python -m livereload. Many other packages support this, like python -m http.server or python -m pip.

This probably wouldn't be hard to do. What do you think?

Not sure about the status of this project, but I could try to create a PR for this.

zommerfelds commented 3 years ago

My workaround:

python -c "import livereload.cli as l; l.main()" -p 8000 --host 0.0.0.0 -t build -w 1