Skip to content

Commit fd618dc

Browse files
authored
Fix relative path (#3)
* Use relative path
1 parent f545a25 commit fd618dc

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ make start
3434

3535
## Limitations
3636

37-
- There might be a limit on maximum input below normal "Sonnet 4" input as Claude Code usually doesn't ingest more than 25 tokens (despite the context being 100k).
37+
- There might be a limit on maximum input below normal "Sonnet 4" input as Claude Code usually doesn't ingest more than 25k tokens (despite the context being 100k).
3838
- Claude Code auto-compacts context beyond 100k.
3939
- Currently runs with bypass mode to avoid tool errors.
4040
- Claude Code tools may need to be disabled to avoid overlap and background usage.

claude_code_api/core/claude_manager.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ async def start(
6060
)
6161

6262
# Start process from src directory (where Claude works without API key)
63-
# Use absolute path to be sure
64-
src_dir = "/workspaces/claude-code-api/claude_code_api"
63+
src_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
6564
logger.info(f"Starting Claude from directory: {src_dir}")
6665
logger.info(f"Command: {' '.join(cmd)}")
6766

0 commit comments

Comments
 (0)