mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-16 05:07:55 +08:00
* refactor cli to improve ux and enable easy incorporation of prepare as a subcommand * switches to use click, which removes some boilerplate and gets us some improved ux for free * changes the entry point for the cli * changes the name of the browser option to --open and makes the default false
13 lines
310 B
Python
13 lines
310 B
Python
# 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 .cli.cli import cli
|
|
cli()
|