Spaces:
Sleeping
Sleeping
Claude Code Claude Opus 4.6 commited on
Commit ·
05faf4e
1
Parent(s): 385d0e7
Claude Code: add openclaw/__init__.py to fix package imports
Browse filesThe openclaw package was missing its __init__.py, causing imports like
'from openclaw.agents.brain_minimal import BrainMinimal' to fail.
This file exposes the internal .openclaw package.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- openclaw/__init__.py +13 -0
openclaw/__init__.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# OpenClaw package initialization
|
| 2 |
+
# Exposes the internal .openclaw package as the top-level openclaw package
|
| 3 |
+
import sys
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
|
| 6 |
+
# Get the openclaw package directory
|
| 7 |
+
_openclaw_dir = Path(__file__).parent / ".openclaw"
|
| 8 |
+
|
| 9 |
+
# Add .openclaw to the module search path
|
| 10 |
+
if str(_openclaw_dir) not in sys.path:
|
| 11 |
+
sys.path.insert(0, str(_openclaw_dir))
|
| 12 |
+
|
| 13 |
+
__version__ = "0.1.0"
|