[Python-checkins] r61167 - python/trunk/Doc/tools/sphinxext/patchlevel.py
georg.brandl
python-checkins at python.org
Sun Mar 2 07:44:08 CET 2008
Author: georg.brandl
Date: Sun Mar 2 07:44:08 2008
New Revision: 61167
Modified:
python/trunk/Doc/tools/sphinxext/patchlevel.py
Log:
Make patchlevel print out the release if called as a script.
Modified: python/trunk/Doc/tools/sphinxext/patchlevel.py
==============================================================================
--- python/trunk/Doc/tools/sphinxext/patchlevel.py (original)
+++ python/trunk/Doc/tools/sphinxext/patchlevel.py Sun Mar 2 07:44:08 2008
@@ -66,3 +66,6 @@
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]
More information about the Python-checkins
mailing list