update resources.py
authorTero Marttila <terom@fixme.fi>
Fri, 05 Jun 2009 21:50:33 +0300
changeset 63 0db16d6b3617
parent 62 53e798708413
child 64 4ebd563214d2
update resources.py
degal/resources.py
--- a/degal/resources.py	Fri Jun 05 21:48:56 2009 +0300
+++ b/degal/resources.py	Fri Jun 05 21:50:33 2009 +0300
@@ -2,9 +2,10 @@
     Resource management
 """
 
+import filesystem
+
 import pkg_resources
 
-# path to package template files
-TEMPLATE_DIR   = pkg_resources.resource_filename('degal', 'templates')
-STATIC_DIR      = pkg_resources.resource_filename('degal', 'static')
+# dir containing package resource files
+STATIC_DIR = filesystem.Root(pkg_resources.resource_filename('degal', 'static'))