mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
launcher: show VCS version in "pylink -v"
(cherry picked from commit a04bf6119e
)
This commit is contained in:
parent
441f2244a9
commit
3e2c6ea1b7
4
pylink
4
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
|
||||
|
Loading…
Reference in New Issue
Block a user