]> granicus.if.org Git - python/commitdiff
Make patchlevel print out the release if called as a script.
authorGeorg Brandl <georg@python.org>
Sun, 2 Mar 2008 06:44:08 +0000 (06:44 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 2 Mar 2008 06:44:08 +0000 (06:44 +0000)
Doc/tools/sphinxext/patchlevel.py

index 971ea6197f6ba190dc9ca6b25e7c4b29d0fc5490..cb9e35c2267b6a66d28f7cc4340a288f0d0b1c35 100644 (file)
@@ -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]