From 5f31b2e274399cd18ac96e887d9672ce221469d0 Mon Sep 17 00:00:00 2001 From: Jonathan Herman Date: Mon, 18 Mar 2013 17:27:42 -0400 Subject: Seperate directory output in plot_exps.py. --- plot_exps.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plot_exps.py') 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(): os.mkdir(opts.out_dir) for dir in args: - plot_dir(dir, opts.out_dir, opts.force) + if len(args) > 1: + out_dir = "%s/%s" % (opts.out_dir, os.path.split(dir)[1]) + else: + out_dir = opts.out_dir + plot_dir(dir, out_dir, opts.force) if __name__ == '__main__': main() -- cgit v1.2.2