mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-04 12:18:12 +08:00
CLI improvements (#221)
* CLI improvements * Circumvent apparent bug with subparsers.required
This commit is contained in:
committed by
Charlotte Weaver
parent
187bbfdcf7
commit
8674ad1f7f
@@ -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()
|
||||
Reference in New Issue
Block a user