summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert JW Regeer <xistence@0x58.com>2017-03-15 22:49:22 -0600
committerGitHub <noreply@github.com>2017-03-15 22:49:22 -0600
commitc130bc20b4a04bc090ae127faeac169828baf771 (patch)
treeeaa7696c89972f2a27bb1d868a199a42b2973f4b
parent76b34b8411cc84ef808f4ab266271bf6a77a1071 (diff)
parent1ec534364b87640cd99a97dbaa63fb8aa17787b1 (diff)
downloadwaitress-c130bc20b4a04bc090ae127faeac169828baf771.tar.gz
Merge pull request #155 from aodag/feature-main-module
add __main__ to run waitress by `-m` option
-rw-r--r--CONTRIBUTORS.txt1
-rw-r--r--waitress/__main__.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
index a53e15d..1953dee 100644
--- a/CONTRIBUTORS.txt
+++ b/CONTRIBUTORS.txt
@@ -137,3 +137,4 @@ Contributors
- Jason Madden, 2016-03-19
+- Atsushi Odagiri, 2017-02-12 \ No newline at end of file
diff --git a/waitress/__main__.py b/waitress/__main__.py
new file mode 100644
index 0000000..e484f40
--- /dev/null
+++ b/waitress/__main__.py
@@ -0,0 +1,2 @@
+from waitress.runner import run # pragma nocover
+run() # pragma nocover