summaryrefslogtreecommitdiffstats
path: root/Modules/config.c.in
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-12-10 13:54:12 (GMT)
committerGuido van Rossum <guido@python.org>1991-12-10 13:54:12 (GMT)
commit9f462af3afe48163e1228998ed6a73d6c329208d (patch)
tree7aea31722aa2da3c534c003aca85853ed2d553d9 /Modules/config.c.in
parentc5e96291d00adac4f977060fc7f8d79a42322f72 (diff)
downloadcpython-9f462af3afe48163e1228998ed6a73d6c329208d.zip
cpython-9f462af3afe48163e1228998ed6a73d6c329208d.tar.gz
cpython-9f462af3afe48163e1228998ed6a73d6c329208d.tar.bz2
Added global 'version' variable.
Print version and copyright when called interactively.
Diffstat (limited to 'Modules/config.c.in')
-rw-r--r--Modules/config.c.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/config.c.in b/Modules/config.c.in
index 103ee82..4f43241 100644
--- a/Modules/config.c.in
+++ b/Modules/config.c.in
@@ -24,6 +24,8 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* Configurable Python configuration file */
+char version[] = "0.9.3 beta (2)";
+
#include <stdio.h>
#ifdef USE_STDWIN
@@ -39,6 +41,11 @@ initargs(p_argc, p_argv)
#ifdef USE_STDWIN
wargs(p_argc, p_argv);
#endif
+ if (*p_argc < 2 && isatty(0) && isatty(1))
+ {
+ printf("Python %s.\n", version);
+ printf("Copyright 1990, 1991 Stichting Mathematisch Centrum, Amsterdam\n");
+ }
}
void