Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mczernek:saltstack:bundle:testing:CI:m-czernek:salt-packaging:PR-3
saltbundlepy
call-startup-script-always.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File call-startup-script-always.patch of Package saltbundlepy
Index: Python-3.10.10/Modules/main.c =================================================================== --- Python-3.10.10.orig/Modules/main.c +++ Python-3.10.10/Modules/main.c @@ -480,10 +480,6 @@ pymain_run_stdin(PyConfig *config) Py_InspectFlag = 0; /* do exit on SystemExit */ int exitcode; - if (pymain_run_startup(config, &exitcode)) { - return exitcode; - } - if (pymain_run_interactive_hook(&exitcode)) { return exitcode; } @@ -574,6 +570,10 @@ pymain_run_python(int *exitcode) pymain_header(config); pymain_import_readline(config); + if (pymain_run_startup(config, exitcode)) { + return; + } + if (config->run_command) { *exitcode = pymain_run_command(config->run_command); } Index: Python-3.10.10/Python/initconfig.c =================================================================== --- Python-3.10.10.orig/Python/initconfig.c +++ Python-3.10.10/Python/initconfig.c @@ -108,7 +108,7 @@ file : program read from script file\n - : program read from stdin (default; interactive mode if a tty)\n\ arg ...: arguments passed to program in sys.argv[1:]\n\n\ Other environment variables:\n\ -PYTHONSTARTUP: file executed on interactive startup (no default)\n\ +PYTHONSTARTUP: file executed on Python startup\n\ PYTHONPATH : '%lc'-separated list of directories prefixed to the\n\ default module search path. The result is sys.path.\n\ ";
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor