From e3125e7e02d461ee7f47e4b5d70dcd3493e68783 Mon Sep 17 00:00:00 2001 From: cwandrews Date: Sun, 8 Oct 2017 19:52:25 -0400 Subject: [PATCH] Further Refactored the setting of env vars passed via the env flag. --- bonobo/commands/run.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bonobo/commands/run.py b/bonobo/commands/run.py index 23298f5..4757a54 100644 --- a/bonobo/commands/run.py +++ b/bonobo/commands/run.py @@ -62,9 +62,7 @@ def read(filename, module, install=False, quiet=False, verbose=False, env=None): ename, evalue = e.split('=', 1) if len(evalue) > 0: - quoted = evalue[0] == evalue[len(evalue) - 1] in ['"', "'"] - - if quoted: + if evalue[0] == evalue[len(evalue) - 1] in ['"', "'"]: evalue = decode_escaped(evalue[1:-1]) os.environ[ename] = evalue