Skip to content

Commit

Permalink
Actually fork sphinx-build to keep Sphinx from leaking state.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramiro Morales committed Jan 2, 2014
1 parent b594173 commit e610d7b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/management/commands/update_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import shutil
import subprocess
import zipfile
import sphinx.cmdline
from contextlib import closing
from django.conf import settings
from django.core.management.base import NoArgsCommand
Expand Down Expand Up @@ -87,10 +86,9 @@ def handle_noargs(self, **kwargs):
shutil.rmtree(build_dir)
build_dir.mkdir(parents=True)

# "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,
'-D', 'language=%s' % release.lang,
'-q', # Be vewy qwiet
Expand Down

0 comments on commit e610d7b

Please sign in to comment.