httpwatcher
httpwatcher copied to clipboard
please support "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:
# -*- coding:utf-8 -*-
import httpwatcher
httpwatcher.watch('.')
and you can run "python -m httpwatcher.run"
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