JuliaLang/julia — pull request #6087 by Ismael-VC (2014-03-09 03:41:06+00:00)
Title: RFC: Fix for `juliadoc` module beeing out of scope.

The change is needed in order to use sphinx-build2:

```bash
smaelvc@toybox ~/TEST/julia/doc (git)-[sphinx_fix] % sphinx-build2 -b gettext . _build/locale
Making output directory...
Running Sphinx v1.2.1

Exception occurred:
File "conf.py", line 15, in
import juliadoc
ImportError: No module named juliadoc
The full traceback has been saved in /tmp/sphinx-err-qK4RSj.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
Either send bugs to the mailing list at ,
or report them in the tracker at . Thanks!
```

Full backtrace:

```bash
ismaelvc@toybox ~/TEST/julia/doc (git)-[sphinx_fix] % cat /tmp/sphinx-err-qK4RSj.log
# Sphinx version: 1.2.1
# Python version: 2.7.6
# Docutils version: 0.11 release
# Jinja2 version: 2.7.2
# Loaded extensions:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/sphinx/cmdline.py", line 253, in main
warningiserror, tags, verbosity, parallel)
File "/usr/lib/python2.7/site-packages/sphinx/application.py", line 107, in __init__
confoverrides or {}, self.tags)
File "/usr/lib/python2.7/site-packages/sphinx/config.py", line 229, in __init__
execfile_(filename, config)
File "/usr/lib/python2.7/site-packages/sphinx/util/pycompat.py", line 100, in execfile_
exec code in _globals
File "conf.py", line 15, in
import juliadoc
ImportError: No module named juliadoc
```