mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-27 21:22:39 +01:00
launcher: show VCS version in "pylink -v"
This commit is contained in:
parent
09c98f66ff
commit
a04bf6119e
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