summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2017-07-05 13:21:04 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2017-07-05 13:21:04 -0400
commit4ffe2e818c3f9b90422d42adfc186929f33122e3 (patch)
tree42f3f9fc1c928f5ef28ffd1601f0b2b22f9c8a1d
parent4fd86f9c8b7b3b79e03a3f38f93aefb03468bd28 (diff)
downloadgroovy-sandbox-4ffe2e818c3f9b90422d42adfc186929f33122e3.tar.gz
sigh
-rw-r--r--src/org/stsci/Conda.groovy20
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