From d7a2330fb6a345ecf9ef6c953f5e1a0f201169d6 Mon Sep 17 00:00:00 2001 From: Romain J Date: Wed, 21 Oct 2020 00:11:53 +0200 Subject: [PATCH] fix(BAN-B607): --- tuxbot/__init__.py | 4 ++-- tuxbot/__run__.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tuxbot/__init__.py b/tuxbot/__init__.py index 48c2dbd..c59fb6e 100644 --- a/tuxbot/__init__.py +++ b/tuxbot/__init__.py @@ -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" diff --git a/tuxbot/__run__.py b/tuxbot/__run__.py index 0a74120..2876b4a 100644 --- a/tuxbot/__run__.py +++ b/tuxbot/__run__.py @@ -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"