diff options
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() |