diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-26 00:05:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-26 00:05:14 +0100 |
commit | c7edab17a1b130b88010b26f1789da0569291676 (patch) | |
tree | 7ce8e192abcc5e106c2e2dc7c731bb13b054aa6b /src/backend/getBinhost.py | |
parent | 3a0e9fe9197a931c1f10208d7690b9d72ac42530 (diff) |
merge getCSV && getBinhost into getEnvironment
Diffstat (limited to 'src/backend/getBinhost.py')
-rw-r--r-- | src/backend/getBinhost.py | 14 |
1 files changed, 0 insertions, 14 deletions
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 |