diff options
author | Rob Austein <sra@hactrn.net> | 2012-07-04 01:15:44 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2012-07-04 01:15:44 +0000 |
commit | ef7dbddced6f61179f2c61011c0b78fdc6b4d8fb (patch) | |
tree | a800f412e1c8e5c4469023852ade4caa3cb66574 /scripts | |
parent | ba7b0f5624de71e925431af8fea72f01448eea08 (diff) |
images/ subdirectory.
svn path=/trunk/; revision=4571
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/analyze-rcynic-history.py | 7 |
1 files changed, 6 insertions, 1 deletions
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 |