cwconfig.py
branchstable
changeset 2220 64aace08ae2f
parent 1977 606923dff11b
child 2221 d9b85a7b0bdd
--- a/cwconfig.py	Wed Jul 01 16:40:35 2009 +0200
+++ b/cwconfig.py	Wed Jul 01 16:41:30 2009 +0200
@@ -743,7 +743,7 @@
                     self.warning('site_erudi.py is deprecated, should be renamed to site_cubicweb.py')
 
     def _load_site_cubicweb(self, sitefile):
-        context = {}
+        context = {'__file__': sitefile}
         execfile(sitefile, context, context)
         self.info('%s loaded', sitefile)
         # cube specific options