mirror of
https://github.com/anthropics/claude-code-sdk-python.git
synced 2025-12-23 09:19:52 +00:00
cleanup
This commit is contained in:
parent
961fff62df
commit
73eb9a777e
1 changed files with 3 additions and 3 deletions
|
|
@ -177,9 +177,9 @@ class SubprocessCLITransport(Transport):
|
|||
# Enable stdin pipe for both modes (but we'll close it for string mode)
|
||||
# Merge environment variables: system -> user -> SDK required
|
||||
process_env = {
|
||||
**os.environ, # Start with system environment
|
||||
**self._options.env, # Override with user-provided env vars
|
||||
"CLAUDE_CODE_ENTRYPOINT": "sdk-py", # SDK required (last to prevent override)
|
||||
**os.environ,
|
||||
**self._options.env, # User-provided env vars
|
||||
"CLAUDE_CODE_ENTRYPOINT": "sdk-py",
|
||||
}
|
||||
|
||||
self._process = await anyio.open_process(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue