summaryrefslogtreecommitdiff
path: root/src/backend/getenv.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-03-11 05:32:19 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-03-11 05:32:19 +0000
commita9d87ee5bd0c98b6daae9ddf307c634da9c35551 (patch)
tree3ae25a65b1511d7a9368fa21b4779a6880a132b7 /src/backend/getenv.py
parent4edf9a7f554f183ccc34b0e57e734a2cbd6f5b9d (diff)
run autopep8 on the code
Diffstat (limited to 'src/backend/getenv.py')
-rw-r--r--src/backend/getenv.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/backend/getenv.py b/src/backend/getenv.py
index 42429f2..3399288 100644
--- a/src/backend/getenv.py
+++ b/src/backend/getenv.py
@@ -6,21 +6,21 @@ import subprocess
import sisyphus.getfs
-def bh_addr():
- bh_addr = []
+def bhst_addr():
+ bhst_addr = []
p_exe = subprocess.Popen(
['emerge', '--info', '--verbose'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
for p_out in io.TextIOWrapper(p_exe.stdout, encoding="utf-8"):
if "PORTAGE_BINHOST" in p_out:
- bh_addr = p_out.rstrip().split("=")[1].strip('\"')
+ bhst_addr = p_out.rstrip().split("=")[1].strip('\"')
p_exe.wait()
- return bh_addr
+ return bhst_addr
def csv_addr():
- csv_addr = bh_addr()
+ csv_addr = bhst_addr()
pcsv_addr = []
dcsv_addr = []
@@ -39,7 +39,7 @@ def csv_addr():
def sys_brch():
- act_brch = None
+ actv_brch = None
if os.path.isdir(os.path.join(sisyphus.getfs.g_src_dir, '.git')):
os.chdir(sisyphus.getfs.g_src_dir)
@@ -47,9 +47,9 @@ def sys_brch():
['git', 'rev-parse', '--abbrev-ref', 'HEAD'])
if lcl_brch.decode().strip() == 'master':
- act_brch = str('master')
+ actv_brch = str('master')
if lcl_brch.decode().strip() == 'next':
- act_brch = str('next')
+ actv_brch = str('next')
- return act_brch
+ return actv_brch