From 15d04d9f2f43df5fa33b7d41902b5359853dc7af Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Thu, 19 Sep 2019 15:16:31 -0500 Subject: [PATCH] added python info to version command --- onionr/onionrcommands/version.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/onionr/onionrcommands/version.py b/onionr/onionrcommands/version.py index 8162f321..f2141352 100644 --- a/onionr/onionrcommands/version.py +++ b/onionr/onionrcommands/version.py @@ -11,5 +11,11 @@ def version(verbosity = 5, function = logger.info): if verbosity >= 1: function(onionrvalues.ONIONR_TAGLINE, terminal=True) if verbosity >= 2: - function('Running on %s %s' % (platform.platform(), platform.release()), terminal=True) - function('Onionr data dir: %s' % identifyhome.identify_home(), terminal=True) \ No newline at end of file + pf = platform.platform() + release = platform.release() + python_imp = platform.python_implementation() + python_version = platform.python_version() + function(f'{python_imp} {python_version} on {pf} {release}', terminal=True) + function('Onionr data dir: %s' % identifyhome.identify_home(), terminal=True) + +version.onionr_help = 'Shows environment details including Onionr version & data directory, OS and Python version'