From 8a6eee8a2bd33f522824afba25feac7c3ac74db3 Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Mon, 27 Jul 2009 16:45:05 +0200 Subject: [PATCH] Create interim dirs automatically --- geekigeeki.py | 1 + 1 file changed, 1 insertion(+) diff --git a/geekigeeki.py b/geekigeeki.py index 71920f3..d3ce220 100755 --- a/geekigeeki.py +++ b/geekigeeki.py @@ -795,6 +795,7 @@ class Page: os.remove(name) except OSError, err: if err.errno != errno.ENOENT: raise err + os.makedirs(os.path.split(name)[0]) os.rename(tmp_filename, name) def save(self, newdata, changelog): -- 2.25.1