From c7edab17a1b130b88010b26f1789da0569291676 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 26 Oct 2022 00:05:14 +0100 Subject: merge getCSV && getBinhost into getEnvironment --- src/backend/getBinhost.py | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 src/backend/getBinhost.py (limited to 'src/backend/getBinhost.py') diff --git a/src/backend/getBinhost.py b/src/backend/getBinhost.py deleted file mode 100644 index befa1f3..0000000 --- a/src/backend/getBinhost.py +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/python3 - -import subprocess - -def start(): - isBinhost = [] - portageExec = subprocess.Popen(['emerge', '--info', '--verbose'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) - stdout, stderr = portageExec.communicate() - - for portageOutput in stdout.decode('ascii').splitlines(): - if "PORTAGE_BINHOST" in portageOutput: - isBinhost = portageOutput.rstrip().split("=")[1].strip('\"') - - return isBinhost -- cgit v1.2.3