From 3e2c6ea1b70509642306aef9386cb0847552c247 Mon Sep 17 00:00:00 2001 From: James Lu Date: Tue, 23 Aug 2016 07:28:48 -0700 Subject: [PATCH] launcher: show VCS version in "pylink -v" (cherry picked from commit a04bf6119e69343f69d37f75e1382d99f2c952db) --- pylink | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylink b/pylink index 221928d..8ecd368 100755 --- a/pylink +++ b/pylink @@ -13,7 +13,7 @@ except ImportError: "setup.py install' (global install) or 'python3 setup.py install --user'" " (local install)\n") sys.exit(1) -from pylinkirc import conf, __version__ +from pylinkirc import conf, __version__, real_version if __name__ == '__main__': import argparse @@ -25,7 +25,7 @@ if __name__ == '__main__': args = parser.parse_args() if args.version: # Display version and exit - print('PyLink ' + __version__) + print('PyLink %s (in VCS: %s)' % (__version__, real_version)) sys.exit() # Load the config