summaryrefslogtreecommitdiffstats
path: root/Doc/tools
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-03-02 06:44:08 (GMT)
committerGeorg Brandl <georg@python.org>2008-03-02 06:44:08 (GMT)
commitf0177282199d4b19108210a357f726a26c05afe1 (patch)
tree26ee3c6b3b70d3048c1c8d8f5085ebcf51d9836c /Doc/tools
parent7f7e30ae2e309114633207df5eb149038ac57a14 (diff)
downloadcpython-f0177282199d4b19108210a357f726a26c05afe1.zip
cpython-f0177282199d4b19108210a357f726a26c05afe1.tar.gz
cpython-f0177282199d4b19108210a357f726a26c05afe1.tar.bz2
Make patchlevel print out the release if called as a script.
Diffstat (limited to 'Doc/tools')
-rw-r--r--Doc/tools/sphinxext/patchlevel.py3
1 files changed, 3 insertions, 0 deletions
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]