mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-24 08:45:13 +00:00
Merge pull request #539 from ThomasWaldmann/add-version
display borg version below tracebacks, fixes #532
This commit is contained in:
commit
2921b60e69
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ def get_terminal_size(fallback=(80, 24)):
|
||||||
from fnmatch import translate
|
from fnmatch import translate
|
||||||
from operator import attrgetter
|
from operator import attrgetter
|
||||||
|
|
||||||
|
from . import __version__ as borg_version
|
||||||
from . import hashindex
|
from . import hashindex
|
||||||
from . import chunker
|
from . import chunker
|
||||||
from . import crypto
|
from . import crypto
|
||||||
|
@ -968,6 +968,6 @@ def sysinfo():
|
||||||
info.append('Platform: %s' % (' '.join(platform.uname()), ))
|
info.append('Platform: %s' % (' '.join(platform.uname()), ))
|
||||||
if sys.platform.startswith('linux'):
|
if sys.platform.startswith('linux'):
|
||||||
info.append('Linux: %s %s %s LibC: %s %s' % (platform.linux_distribution() + platform.libc_ver()))
|
info.append('Linux: %s %s %s LibC: %s %s' % (platform.linux_distribution() + platform.libc_ver()))
|
||||||
info.append('Python: %s %s' % (platform.python_implementation(), platform.python_version()))
|
info.append('Borg: %s Python: %s %s' % (borg_version, platform.python_implementation(), platform.python_version()))
|
||||||
info.append('')
|
info.append('')
|
||||||
return '\n'.join(info)
|
return '\n'.join(info)
|
||||||
|
|
Loading…
Reference in a new issue