Skip to content

Commit

Permalink
Set the BRIAN2_DOCS_TUTORIALS_DIR environment variable
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
mstimberg committed Mar 10, 2015
1 parent cb4495d commit c0f69ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs_sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ def __getattr__(cls, name):
for mod_name in MOCK_MODULES:
sys.modules[mod_name] = Mock()

# Store the examples directory in an environment variable, used by the
# "example finder" that is called as part of the autoclass documentation
# Store the examples and tutorials directory in an environment variable,
# used by the "example finder" that is called as part of the autoclass documentation
os.environ['BRIAN2_DOCS_EXAMPLE_DIR'] = root_dir = os.path.abspath('../examples')
os.environ['BRIAN2_DOCS_TUTORIALS_DIR'] = root_dir = os.path.abspath('../tutorials')

if 'BRIAN2_DOCS_QUICK_REBUILD' not in os.environ:
# -- Automatically generate the reference documentation ------------------------
Expand Down

0 comments on commit c0f69ed

Please sign in to comment.