[py-svn] r38781 - py/trunk/py/doc
hpk at codespeak.net
hpk at codespeak.net
Wed Feb 14 03:29:13 CET 2007
Author: hpk
Date: Wed Feb 14 03:29:11 2007
New Revision: 38781
Modified:
py/trunk/py/doc/confrest.py
Log:
the target docpath needs to be determined per project
Modified: py/trunk/py/doc/confrest.py
==============================================================================
--- py/trunk/py/doc/confrest.py (original)
+++ py/trunk/py/doc/confrest.py Wed Feb 14 03:29:11 2007
@@ -4,7 +4,6 @@
from py.__.doc.conftest import get_apigenpath, get_docpath
from py.__.apigen.linker import relpath
-mydir = py.magic.autopath().dirpath()
html = py.xml.html
class Page(object):
@@ -107,6 +106,7 @@
class Project:
+ mydir = py.magic.autopath().dirpath()
# string for url, path for local file
stylesheet = mydir.join('style.css')
title = "py lib"
@@ -123,11 +123,14 @@
def get_content(self, txtpath, encoding):
return unicode(txtpath.read(), encoding)
+ def get_docpath(self):
+ return get_docpath()
+
def process(self, txtpath):
encoding = self.encoding
content = self.get_content(txtpath, encoding)
- docpath = get_docpath()
- reloutputpath = txtpath.new(ext='.html').relto(mydir)
+ docpath = self.get_docpath()
+ reloutputpath = txtpath.new(ext='.html').relto(self.mydir)
outputpath = docpath.join(reloutputpath)
stylesheet = self.stylesheet
More information about the pytest-commit
mailing list