aboutsummaryrefslogtreecommitdiff
path: root/source/conda.d
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2019-05-27 01:24:20 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2019-05-27 01:24:20 -0400
commit921eb00c131fe0c6f0834f2556e7597424a3ba49 (patch)
tree04acf5223dd4978013d75d8f85e811e0756852c2 /source/conda.d
parent97ebb43d26d3e452f6ac8995f212ba971aefc231 (diff)
downloaddm-921eb00c131fe0c6f0834f2556e7597424a3ba49.tar.gz
Better testing
Diffstat (limited to 'source/conda.d')
-rw-r--r--source/conda.d10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/conda.d b/source/conda.d
index ff44b50..7b30c56 100644
--- a/source/conda.d
+++ b/source/conda.d
@@ -275,4 +275,14 @@ class Conda {
}
return proc.output;
}
+
+ string dump_env_freeze(string filename=null) {
+ auto proc = this.sh_block("pip freeze");
+ if (filename !is null) {
+ auto file = File(filename, "w+");
+ file.write(proc.output);
+ }
+ return proc.output;
+ }
+
}