fix(BAN-B607):

This commit is contained in:
Romain J 2020-10-21 00:11:53 +02:00
parent 969ff8c351
commit d7a2330fb6
2 changed files with 3 additions and 3 deletions

View file

@ -1,8 +1,8 @@
import os
from collections import namedtuple
build = os.popen("git rev-parse --short HEAD").read().strip()
info = os.popen('git log -n 1 -s --format="%s"').read().strip()
build = os.popen("/usr/bin/git rev-parse --short HEAD").read().strip()
info = os.popen('/usr/bin/git log -n 1 -s --format="%s"').read().strip()
VersionInfo = namedtuple(
"VersionInfo", "major minor micro releaselevel build, info"

View file

@ -77,7 +77,7 @@ def debug_info() -> NoReturn:
tuxbot_version = __version__
dpy_version = discord.__version__
uptime = os.popen("uptime").read().strip().split()
uptime = os.popen("/usr/bin/uptime").read().strip().split()
console.print(
Panel("[bold blue]Debug Info", style="blue"), justify="center"