[gnome-icon-theme] make sure dirs are created even if a parent is missing



commit 0c99e060ca2dd3ba2719f5402eeb57880a87d98e
Author: Jakub Steiner <jimmac gmail com>
Date:   Mon Mar 29 18:18:04 2010 +0200

    make sure dirs are created even if a parent is missing

 render-icon-theme.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/render-icon-theme.py b/render-icon-theme.py
index 75347c5..4e486d5 100755
--- a/render-icon-theme.py
+++ b/render-icon-theme.py
@@ -108,7 +108,7 @@ class ContentHandler(xml.sax.ContentHandler):
                 dir = os.path.join("gnome", "%sx%s" % (width, height), self.context)
                 outfile = os.path.join(dir, self.icon_name+'.png')
                 if not os.path.exists(dir):
-                    os.mkdir(dir)
+                    os.makedirs(dir)
                 # Do a time based check!
                 if self.force or not os.path.exists(outfile):
                     inkscape_render_rect(self.path, id, outfile)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]