Open hananbeer opened 3 years ago
The easiest solution to this would be to add a __main__.py
file with the exact code above. How do you feel about this? @thanethomson
Sure, sounds good :+1:
The latest version of the dev branch now contains a simple Python script that allows you to call:
python -m httpwatcher
I use "python -m http.server" a lot. your solution is exactly what I needed. I found a no-brainer solution to support "-m" flag, just add the following file run.py:
and you can run "python -m httpwatcher.run"