[svn r38773] Using ensure() better (thanks, hpk ;).

--HG--
branch : trunk
This commit is contained in:
guido 2007-02-14 01:11:26 +01:00
parent d457485d1b
commit f074f6137c
2 changed files with 2 additions and 4 deletions

View File

@ -41,7 +41,6 @@ def build(pkgdir, dsa, capture):
# output dir
from py.__.conftest import option
targetdir = get_apigenpath()
if not targetdir.check(dir=True):
targetdir.ensure(dir=True)
# find out what to build

View File

@ -135,7 +135,6 @@ class Project:
stylesheet = self.stylesheet
if isinstance(self.stylesheet, py.path.local):
if not docpath.join(stylesheet.basename).check():
if not docpath.check(dir=True):
docpath.ensure(dir=True)
stylesheet.copy(docpath)
stylesheet = relpath(outputpath.strpath,