mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
add python interpreter version and path to -v and -a output
This commit is contained in:
@ -6,6 +6,7 @@ jc changelog
|
|||||||
- Fix yaml file parser for files including timestamp objects
|
- Fix yaml file parser for files including timestamp objects
|
||||||
- Update xrandr parser: add a 'rotation' field
|
- Update xrandr parser: add a 'rotation' field
|
||||||
- Fix failing tests by moving template files
|
- Fix failing tests by moving template files
|
||||||
|
- Add python interpreter version and path to -v and -a output
|
||||||
|
|
||||||
20220325 v1.18.6
|
20220325 v1.18.6
|
||||||
- Add pidstat command parser tested on linux
|
- Add pidstat command parser tested on linux
|
||||||
|
@ -177,6 +177,8 @@ def about_jc():
|
|||||||
'website': info.website,
|
'website': info.website,
|
||||||
'copyright': info.copyright,
|
'copyright': info.copyright,
|
||||||
'license': info.license,
|
'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()),
|
'parser_count': len(all_parser_info()),
|
||||||
'parsers': all_parser_info()
|
'parsers': all_parser_info()
|
||||||
}
|
}
|
||||||
@ -249,8 +251,11 @@ def help_doc(options):
|
|||||||
|
|
||||||
def versiontext():
|
def versiontext():
|
||||||
"""Return the version text"""
|
"""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'''\
|
versiontext_string = f'''\
|
||||||
jc version {info.version}
|
jc version: {info.version}
|
||||||
|
python interpreter version: {py_ver}
|
||||||
|
python path: {sys.executable}
|
||||||
{info.website}
|
{info.website}
|
||||||
{info.copyright}'''
|
{info.copyright}'''
|
||||||
return textwrap.dedent(versiontext_string)
|
return textwrap.dedent(versiontext_string)
|
||||||
|
Reference in New Issue
Block a user