From c4a94921c668fd26b5c6dcffa8cb2b34dd4c0d4c Mon Sep 17 00:00:00 2001 From: guido Date: Fri, 2 Feb 2007 22:47:21 +0100 Subject: [PATCH] [svn r37833] Oops, was using py.path.local('.') instead of py.magic.autopath().dirpath() to find the scripts to copy... --HG-- branch : trunk --- py/apigen/layout.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/py/apigen/layout.py b/py/apigen/layout.py index d0934c124..92c6b062b 100644 --- a/py/apigen/layout.py +++ b/py/apigen/layout.py @@ -7,12 +7,14 @@ import py 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')