File call-startup-script-always.patch of Package saltbundlepy
diff -urN a/Modules/main.c b/Modules/main.c
--- a/Modules/main.c 2022-01-13 21:52:14.000000000 +0300
+++ b/Modules/main.c 2022-02-28 17:53:56.357334526 +0300
@@ -480,10 +480,6 @@
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_header(config);
pymain_import_readline(config);
+ if (pymain_run_startup(config, exitcode)) {
+ return;
+ }
+
if (config->run_command) {
*exitcode = pymain_run_command(config->run_command);
}
diff -urN a/Python/initconfig.c b/Python/initconfig.c
--- a/Python/initconfig.c 2022-01-13 21:52:14.000000000 +0300
+++ b/Python/initconfig.c 2022-02-28 17:48:13.595882216 +0300
@@ -104,7 +104,7 @@
- : 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\
";