[py-svn] r37833 - py/trunk/py/apigen

guido at codespeak.net guido at codespeak.net
Fri Feb 2 22:47:23 CET 2007


Author: guido
Date: Fri Feb  2 22:47:21 2007
New Revision: 37833

Modified:
   py/trunk/py/apigen/layout.py
Log:
Oops, was using py.path.local('.') instead of py.magic.autopath().dirpath()
to find the scripts to copy...


Modified: py/trunk/py/apigen/layout.py
==============================================================================
--- py/trunk/py/apigen/layout.py	(original)
+++ py/trunk/py/apigen/layout.py	Fri Feb  2 22:47:21 2007
@@ -7,12 +7,14 @@
 from py.__.doc import confrest
 from py.__.apigen import linker
 
+here = py.magic.autopath().dirpath()
+
 class LayoutPage(confrest.PyPage):
     """ this provides the layout and style information """
 
-    stylesheets = [(py.path.local('../doc/style.css'), 'style.css'),
-                   (py.path.local('style.css'), 'apigen_style.css')]
-    scripts = [(py.path.local('api.js'), 'api.js')]
+    stylesheets = [(here.join('../doc/style.css'), 'style.css'),
+                   (here.join('style.css'), 'apigen_style.css')]
+    scripts = [(here.join('api.js'), 'api.js')]
 
     def __init__(self, *args, **kwargs):
         self.nav = kwargs.pop('nav')



More information about the pytest-commit mailing list