Spaces:
Sleeping
Sleeping
| # OpenClaw package initialization | |
| # Exposes the internal .openclaw package as the top-level openclaw package | |
| import sys | |
| from pathlib import Path | |
| # Get the openclaw package directory | |
| _package_dir = Path(__file__).parent # /app/openclaw (Docker) or workspace/openclaw (local) | |
| # The .openclaw directory is always inside the openclaw package directory | |
| # Docker: /app/openclaw/.openclaw | |
| # Local: workspace/openclaw/.openclaw | |
| _openclaw_internal = _package_dir / ".openclaw" | |
| # Add to sys.path for "from agents import brain_minimal" to work | |
| if str(_openclaw_internal) not in sys.path: | |
| sys.path.insert(0, str(_openclaw_internal)) | |
| __version__ = "0.1.2" # Fix brain_minimal get_info error field + format_status parameter mismatch | |