Write "making output directory" to the status fd, not to stderr unconditionally.

This commit is contained in:
Georg Brandl 2013-01-12 12:22:30 +01:00
parent c1176a1bdb
commit f022886032

View File

@ -98,9 +98,6 @@ def main(argv):
'contain conf.py file.')
return 1
outdir = abspath(args[1])
if not path.isdir(outdir):
print >>sys.stderr, 'Making output directory...'
os.makedirs(outdir)
except getopt.error, err:
usage(argv, 'Error: %s' % err)
return 1
@ -215,6 +212,11 @@ def main(argv):
warning = Tee(warning, warnfp)
error = warning
if not path.isdir(outdir):
if status:
print >>status, 'Making output directory...'
os.makedirs(outdir)
try:
app = Sphinx(srcdir, confdir, outdir, doctreedir, buildername,
confoverrides, status, warning, freshenv,