diff options
author | Itxaka <itxakaserrano@gmail.com> | 2015-08-31 15:08:54 +0200 |
---|---|---|
committer | Itxaka <itxakaserrano@gmail.com> | 2015-08-31 15:08:54 +0200 |
commit | 441b4b4db38bf761a6fb66b38c984dfddf6db38f (patch) | |
tree | 53c63b0a47b6c81be7d506d4b52ce7938ae93fa6 | |
parent | 346369d29f334a7c8369a440f532408d60f04102 (diff) | |
download | tox-441b4b4db38bf761a6fb66b38c984dfddf6db38f.tar.gz |
better workflow, picks the resolved envs instead of the written string
-rw-r--r-- | tox/config.py | 11 |
1 files 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: |