diff options
| author | Mohamed Hegazy <mhegazy@anthropic.com> | 2026-10-19 17:11:22 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-10-19 17:11:22 +0000 |
| commit | 1eee6df1f032b8719fecdd987273d908d168f467 (patch) | |
| tree | 43b5802cf690204f75b017b87fceaf06e7cf9792 /plugins/code-modernization/scripts/baseline_diff.py | |
| parent | ea10b213686c90bb1984b2016937310e05336cf3 (diff) | |
security-guidance: run SDK bootstrap subprocesses from the state dirmhegazy/sg-bootstrap-spawn-cwd
`python -c` and `python -m` put the working directory first on the import
path, and hooks run in the user's repository. A repository file named
claude_agent_sdk.py, venv.py or pip.py was imported in place of the real
module by the SessionStart check and the venv build. Run those
subprocesses from the plugin's state dir, and make state_dir() return an
absolute path as its docstring says, so a relative override isn't
resolved twice.
Diffstat (limited to 'plugins/code-modernization/scripts/baseline_diff.py')
0 files changed, 0 insertions, 0 deletions
