Commit 65afbcf7 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

Show python version with slapos --version

$ slapos --version
slapos 1.7.7 (Python 3.9.2)
parent 2b481142
Pipeline #22353 failed with stage
in 0 seconds
......@@ -32,6 +32,7 @@ import codecs
import collections
import locale
import logging
import platform
import sys
import os
......@@ -138,7 +139,7 @@ class SlapOSApp(App):
def __init__(self):
super(SlapOSApp, self).__init__(
description='SlapOS client %s' % slapos.version.version,
version=slapos.version.version,
version='%s (Python %s)' % (slapos.version.version, platform.python_version()),
command_manager=SlapOSCommandManager('slapos.cli'),
)
# replace default complete command
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment