show python implementation name and flip verison output order for easier reading when wrapped on small screens

This commit is contained in:
Nick Sweeting 2020-12-11 16:21:52 +02:00
parent 6623497f18
commit 30f8d3f191
2 changed files with 19 additions and 11 deletions

View file

@ -69,6 +69,7 @@ from .config import (
ANSI,
IS_TTY,
IN_DOCKER,
PYTHON_VERSION,
USER,
ARCHIVEBOX_BINARY,
ONLY_NEW,
@ -218,7 +219,7 @@ def version(quiet: bool=False,
else:
print('ArchiveBox v{}'.format(VERSION))
p = platform.uname()
print(p.system, platform.platform(), p.machine)
print(sys.implementation.name.title(), p.system, platform.platform(), p.machine, f'(in Docker)' if IN_DOCKER else f'(not in Docker)')
print()
print('{white}[i] Dependency versions:{reset}'.format(**ANSI))