]> arthur.barton.de Git - bup.git/blobdiff - lib/cmd/features-cmd.py
features: show version number of the Python interpreter
[bup.git] / lib / cmd / features-cmd.py
index c0495351c47bbb27a8ff7668da9545c66a3adc6d..3a5911dff4442e93fdf787c93034b278bfd731f6 100755 (executable)
@@ -15,7 +15,7 @@ exec "$bup_python" "$0"
 # end of bup preamble
 
 from __future__ import absolute_import, print_function
-import os.path, sys
+import os.path, sys, platform
 
 sys.path[:0] = [os.path.dirname(os.path.realpath(__file__)) + '/..']
 
@@ -43,6 +43,7 @@ have_readline = getattr(_helpers, 'readline', None)
 have_libacl = getattr(_helpers, 'read_acl', None)
 have_xattr = metadata.xattr
 
+out.write(b'    Python: %s\n' % platform.python_version().encode('ascii'))
 show_support(out, have_readline, b'Command line editing (e.g. bup ftp)')
 show_support(out, have_libacl, b'Saving and restoring POSIX ACLs')
 show_support(out, have_xattr, b'Saving and restoring extended attributes (xattrs)')