CLI improvements (#221)

* CLI improvements

* Circumvent apparent bug with subparsers.required
This commit is contained in:
Philipp A
2018-10-04 16:41:14 -07:00
committed by Charlotte Weaver
parent 187bbfdcf7
commit 8674ad1f7f
2 changed files with 17 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
# Work around bug https://github.com/pallets/werkzeug/issues/461
if __package__ is None:
import sys
from pathlib import Path
PKG_PATH = Path(__file__).parent
sys.path.insert(0, str(PKG_PATH.parent))
import server
__package__ = PKG_PATH.name
# Main thing
from .app.app import main
main()