diff --git a/CHANGELOG b/CHANGELOG index 43b4d4ae..ecff28e4 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -6,6 +6,7 @@ jc changelog - Fix yaml file parser for files including timestamp objects - Update xrandr parser: add a 'rotation' field - Fix failing tests by moving template files +- Add python interpreter version and path to -v and -a output 20220325 v1.18.6 - Add pidstat command parser tested on linux diff --git a/jc/cli.py b/jc/cli.py index ae8949f9..ecd069f5 100644 --- a/jc/cli.py +++ b/jc/cli.py @@ -177,6 +177,8 @@ def about_jc(): 'website': info.website, 'copyright': info.copyright, 'license': info.license, + 'python_version': '.'.join((str(sys.version_info.major), str(sys.version_info.minor), str(sys.version_info.micro))), + 'python_path': sys.executable, 'parser_count': len(all_parser_info()), 'parsers': all_parser_info() } @@ -249,8 +251,11 @@ def help_doc(options): def versiontext(): """Return the version text""" + py_ver = '.'.join((str(sys.version_info.major), str(sys.version_info.minor), str(sys.version_info.micro))) versiontext_string = f'''\ - jc version {info.version} + jc version: {info.version} + python interpreter version: {py_ver} + python path: {sys.executable} {info.website} {info.copyright}''' return textwrap.dedent(versiontext_string)