INNER CODE UNIT · Python

cmd_up

ghost-in-the-droid/android-agent · gitd/cli.py:518

def cmd_up(args):
    """Boot the server + dashboard (replaces `python3 run.py`)."""
    from pathlib import Path as _Path

    # Load .env from the current working dir if present (uvx/pipx runs from
    # anywhere, so we can't assume the repo layout run.py relied on).
    try:
        from dotenv import load_dotenv

        env = _Path.cwd() / ".env"
        if env.exists():
            load_dotenv(env)
    except Exception:
        pass

    try:
        import uvicorn

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…