fix Gallery.stylesheet to actually copy it into place
authorTero Marttila <terom@fixme.fi>
Wed, 10 Jun 2009 23:32:12 +0300
changeset 82 c21d9145aabc
parent 81 2b0b76cd8ba0
child 83 577319615b4a
fix Gallery.stylesheet to actually copy it into place
degal/gallery.py
--- a/degal/gallery.py	Wed Jun 10 23:15:25 2009 +0300
+++ b/degal/gallery.py	Wed Jun 10 23:32:12 2009 +0300
@@ -40,7 +40,7 @@
 
         stylesheet = self.degal_dir.subfile('style.css')
         
-        if not stylesheet :
+        if not stylesheet.exists() :
             # copy it from resources
             stylesheet.copy_from(resources.STATIC_DIR.subfile('style.css'))