diff options
-rw-r--r-- | src/org/stsci/Conda.groovy | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/org/stsci/Conda.groovy b/src/org/stsci/Conda.groovy index d406cc9..7883499 100644 --- a/src/org/stsci/Conda.groovy +++ b/src/org/stsci/Conda.groovy @@ -54,16 +54,16 @@ class Conda implements Serializable { def env_dump = this.runshell("source ${prefix}/bin/activate ${conda_env} ; printenv", true) /* Split each environment keypair by first occurance of '=' */ - env_dump.inputStream.eachLine { line -> - if(line) { - def (k, v) = line.split('=', 2).collect { it.trim() } - /* Strip out envmodules if they exist, i.e. multiline variables*/ - if (k.contains("_FUNC_") || !line.contains("=")) { - return - } - records."$k" = v - } - } + //env_dump.inputStream.eachLine { line -> + // if(line) { + // def (k, v) = line.split('=', 2).collect { it.trim() } + // /* Strip out envmodules if they exist, i.e. multiline variables*/ + // if (k.contains("_FUNC_") || !line.contains("=")) { + // return + // } + // records."$k" = v + // } + //} /* runshell can now natively resolve this conda installation */ this.shell_environment = records |