diff options
Diffstat (limited to 'source/conda.d')
-rw-r--r-- | source/conda.d | 10 |
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; + } + } |