mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
Add the -P command line option and the PYTHONSAFEPATH environment variable to not prepend a potentially unsafe path to sys.path. * Add sys.flags.safe_path flag. * Add PyConfig.safe_path member. * Programs/_bootstrap_python.c uses config.safe_path=0. * Update subprocess._optim_args_from_interpreter_flags() to handle the -P command line option. * Modules/getpath.py sets safe_path to 1 if a "._pth" file is present. |
||
|---|---|---|
| .. | ||
| _bootstrap_python.c | ||
| _freeze_module.c | ||
| _freeze_module.py | ||
| _testembed.c | ||
| freeze_test_frozenmain.py | ||
| python.c | ||
| README | ||
| test_frozenmain.h | ||
| test_frozenmain.py | ||
Source files for binary executables (as opposed to shared modules)