From ef7dbddced6f61179f2c61011c0b78fdc6b4d8fb Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 4 Jul 2012 01:15:44 +0000 Subject: images/ subdirectory. svn path=/trunk/; revision=4571 --- scripts/analyze-rcynic-history.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/analyze-rcynic-history.py b/scripts/analyze-rcynic-history.py index 208ace79..af60752a 100644 --- a/scripts/analyze-rcynic-history.py +++ b/scripts/analyze-rcynic-history.py @@ -215,11 +215,16 @@ def plot_hosts(hostnames, fields): for logscale in (False, True): gnuplot = subprocess.Popen(("gnuplot",), stdin = subprocess.PIPE) gnuplot.stdin.write("set terminal pdf\n") - gnuplot.stdin.write("set output '%s-%s.pdf'\n" % (field, "log" if logscale else "linear")) + gnuplot.stdin.write("set output '%s/%s-%s.pdf'\n" % (outdir, field, "log" if logscale else "linear")) plotter(gnuplot.stdin, hostnames, field, logscale = logscale) gnuplot.stdin.close() gnuplot.wait() +outdir = "images" + +if not os.path.exists(outdir): + os.makedirs(outdir) + mb = mailbox.Maildir("/u/sra/rpki/rcynic-xml", factory = None, create = False) if sys.platform == "darwin": # Sigh -- cgit v1.2.3