merge in main repo.

This commit is contained in:
Chris 2008-11-04 16:14:01 -07:00
commit ce4d9c3665
2 changed files with 3 additions and 3 deletions

View File

@ -73,8 +73,8 @@ def main(argv=sys.argv):
return 1
outdir = path.abspath(args[1])
if not path.isdir(outdir):
print >>sys.stderr, 'Error: Cannot find output directory.'
return 1
print >>sys.stderr, 'Making output directory...'
os.makedirs(outdir)
except (IndexError, getopt.error):
usage(argv)
return 1

View File

@ -67,7 +67,7 @@ class Builder(object):
self.outdir = app.outdir
self.doctreedir = app.doctreedir
if not path.isdir(self.doctreedir):
os.mkdir(self.doctreedir)
os.makedirs(self.doctreedir)
self.app = app
self.warn = app.warn