From f0177282199d4b19108210a357f726a26c05afe1 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 2 Mar 2008 06:44:08 +0000 Subject: Make patchlevel print out the release if called as a script. --- Doc/tools/sphinxext/patchlevel.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/tools/sphinxext/patchlevel.py b/Doc/tools/sphinxext/patchlevel.py index 971ea61..cb9e35c 100644 --- a/Doc/tools/sphinxext/patchlevel.py +++ b/Doc/tools/sphinxext/patchlevel.py @@ -66,3 +66,6 @@ def get_version_info(): print >>sys.stderr, 'Can\'t get version info from Include/patchlevel.h, ' \ 'using version of this interpreter (%s).' % release return version, release + +if __name__ == '__main__': + print get_header_version_info('.')[1] -- cgit v0.12