summaryrefslogtreecommitdiffstats
path: root/Modules/config.c.in
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-04-01 20:59:32 (GMT)
committerGuido van Rossum <guido@python.org>1993-04-01 20:59:32 (GMT)
commitf56e3db1dd4bedc9331933504f5008a03f5d3131 (patch)
treee5dad2acc4127f93e054658c6226ecec274c2930 /Modules/config.c.in
parent41ffccbba75413c64efad283da19b8038aa07dd1 (diff)
downloadcpython-f56e3db1dd4bedc9331933504f5008a03f5d3131.zip
cpython-f56e3db1dd4bedc9331933504f5008a03f5d3131.tar.gz
cpython-f56e3db1dd4bedc9331933504f5008a03f5d3131.tar.bz2
Support for frozen scripts; added -i option.
Diffstat (limited to 'Modules/config.c.in')
-rw-r--r--Modules/config.c.in20
1 files changed, 19 insertions, 1 deletions
diff --git a/Modules/config.c.in b/Modules/config.c.in
index 7dba37c..fe48023 100644
--- a/Modules/config.c.in
+++ b/Modules/config.c.in
@@ -82,6 +82,8 @@ char version[80];
char *argv0; /* For dynamic loading in import.c */
+extern char verbose;
+
/*ARGSUSED*/
void
initargs(p_argc, p_argv)
@@ -98,7 +100,11 @@ initargs(p_argc, p_argv)
#endif
wargs(p_argc, p_argv);
#endif /* USE_STDWIN */
- if (*p_argc < 2 && isatty(0) && isatty(1))
+#ifdef USE_FROZEN
+ if (verbose)
+#else
+ if (verbose || *p_argc < 2 && isatty(0) && isatty(1))
+#endif
{
printf("Python %s.\n", version);
printf(
@@ -448,3 +454,15 @@ struct {
{0, 0} /* Sentinel */
};
+
+#ifdef USE_FROZEN
+#include "frozen.c"
+#else
+struct frozen {
+ char *name;
+ char *code;
+ int size;
+} frozen_modules[] = {
+ {0, 0, 0}
+};
+#endif