diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-03-18 17:27:42 -0400 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-03-18 17:27:42 -0400 |
commit | 5f31b2e274399cd18ac96e887d9672ce221469d0 (patch) | |
tree | d81754adbf56d2ad0bd5ae560f81208d78aa4ef9 /plot_exps.py | |
parent | 57f52d18ca984a6328a04edbc1854407005e89cf (diff) |
Seperate directory output in plot_exps.py.
Diffstat (limited to 'plot_exps.py')
-rwxr-xr-x | plot_exps.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plot_exps.py b/plot_exps.py index 49cc729..affe231 100755 --- a/plot_exps.py +++ b/plot_exps.py | |||
@@ -142,7 +142,11 @@ def main(): | |||
142 | os.mkdir(opts.out_dir) | 142 | os.mkdir(opts.out_dir) |
143 | 143 | ||
144 | for dir in args: | 144 | for dir in args: |
145 | plot_dir(dir, opts.out_dir, opts.force) | 145 | if len(args) > 1: |
146 | out_dir = "%s/%s" % (opts.out_dir, os.path.split(dir)[1]) | ||
147 | else: | ||
148 | out_dir = opts.out_dir | ||
149 | plot_dir(dir, out_dir, opts.force) | ||
146 | 150 | ||
147 | if __name__ == '__main__': | 151 | if __name__ == '__main__': |
148 | main() | 152 | main() |