diff options
| author | Mohamed Hegazy <mhegazy@anthropic.com> | 2026-11-09 18:55:10 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-11-09 18:55:10 +0000 |
| commit | f3700b581c4f4df3b69cba3e276b23042f1bf200 (patch) | |
| tree | fc9612a3149037fde554c67591e778a348a7d76f /plugins/code-modernization/scripts | |
| parent | 0412be76f50ab4f4f8abff3753efa9269fbbca5b (diff) | |
security-guidance: set an environment variable for the launcher's interpreter probesmhegazy/sg-launcher-probe-env
sg-python.sh asks a candidate interpreter for its version and, for a
packaged Windows alias, for its real path, with `python -c`. Both calls
import only os and sys, so they now run with PYTHONSAFEPATH=1, which tells
Python not to add its usual first entry to the import path.
The variable is set for those two calls alone, so the hook starts with the
same environment as before. Python older than 3.11 ignores the variable.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
Diffstat (limited to 'plugins/code-modernization/scripts')
0 files changed, 0 insertions, 0 deletions
