diff options
Diffstat (limited to 'src/backend/getenv.py')
-rw-r--r-- | src/backend/getenv.py | 18 |
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 |