summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utils/env_prepare/stack_prepare.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/env_prepare/stack_prepare.py b/utils/env_prepare/stack_prepare.py
index c7dae390..640afa13 100644
--- a/utils/env_prepare/stack_prepare.py
+++ b/utils/env_prepare/stack_prepare.py
@@ -83,7 +83,9 @@ def _source_file(rc_file):
p = subprocess.Popen(". %s; env" % rc_file, stdout=subprocess.PIPE,
shell=True)
output = p.communicate()[0]
- env = dict((line.split('=', 1) for line in output.splitlines()))
+ output_lines = output.splitlines()
+ del output_lines[5]
+ env = dict((line.split('=', 1) for line in output_lines))
os.environ.update(env)
return env