From 441b4b4db38bf761a6fb66b38c984dfddf6db38f Mon Sep 17 00:00:00 2001 From: Itxaka Date: Mon, 31 Aug 2015 15:08:54 +0200 Subject: better workflow, picks the resolved envs instead of the written string --- tox/config.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tox/config.py b/tox/config.py index 55cd699..37e9260 100644 --- a/tox/config.py +++ b/tox/config.py @@ -928,11 +928,12 @@ class SectionReader: return env_list.get(envkey, default) def _build_envs_list(self): - full_envs = self._cfg[self.section_name].get('setenv', False) - if full_envs: - return {k.split('=')[0]: k.split('=')[1] for k in full_envs.split('\n')} - else: - return {} + full_envs = self.getargvlist('setenv') + return_data = {} + for item in full_envs: + splitted = " ".join(item).split("=") + return_data[splitted[0]] = splitted[1] + return return_data def _substitute_from_other_section(self, key): if key.startswith("[") and "]" in key: -- cgit v1.2.1