Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use subprocess.call instead of "internal" sphinx-build call.

At some point, sphinx.cmdline.main() started hanging onto some state,
and so builds were getting corrupted by previous builds. Rather than try
to track down the error I just punted and shelled out instead.
  • Loading branch information...
commit 435b755f445e3a9618c0161034b0a61cc664ca65 1 parent ec30e5d
@jacobian jacobian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django_website/docs/management/commands/update_docs.py
View
2  django_website/docs/management/commands/update_docs.py
@@ -69,7 +69,7 @@ def handle_noargs(self, **kwargs):
# "Shell out" (not exactly, but basically) to sphinx-build.
if verbosity >= 2:
print " building %s (%s -> %s)" % (builder, source_dir, build_dir)
- sphinx.cmdline.main(['sphinx-build',
+ subprocess.call(['sphinx-build',
'-b', builder,
'-q', # Be vewy qwiet
source_dir, # Source file directory
Please sign in to comment.
Something went wrong with that request. Please try again.