From: Bernie Innocenti Date: Mon, 27 Jul 2009 14:45:05 +0000 (+0200) Subject: Create interim dirs automatically X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=8a6eee8a2bd33f522824afba25feac7c3ac74db3;p=geekigeeki.git Create interim dirs automatically --- 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):