From d62f2e8130c65aedde7eaec33fdbb1f261ce0b19 Mon Sep 17 00:00:00 2001 From: David Kaufmann Date: Sun, 29 Jan 2012 20:48:06 +0100 Subject: [PATCH] add mkdir for stats/generated --- prefix/parseDat.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/prefix/parseDat.py b/prefix/parseDat.py index e4d260d..7f690c5 100755 --- a/prefix/parseDat.py +++ b/prefix/parseDat.py @@ -111,13 +111,14 @@ for i in uniquelist: graphs_alg = {} graphs_sched = {} -gendir = 'stats/generated' +gendir = "stats/generated/" +subprocess.call(["mkdir", "-p", gendir]) for alg in alg_dict: pngfile = 'algorithm.'+alg+'.png' graphs_alg[pngfile] = [] for sched in alg_dict[alg]: datfile = 'data.'+alg+'.'+sched+'.dat' - fh = open(gendir+'/'+datfile, 'a+') + fh = open(gendir+datfile, 'a+') graphs_alg[pngfile].append((sched, datfile, '1:2')) for dot in alg_dict[alg][sched]: fh.write(dot+"\n") -- 2.43.0