MDAnalysis / cookiecutter-mdakit

Cookiecutter for Python packages based on MDAnalysis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Documentation configuration attempts to import a package that's not installed before updating the path

ianmkenney opened this issue · comments

# -- Path setup --------------------------------------------------------------
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
# Incase the project was not installed
import {{cookiecutter.repo_name}}
import os
import sys
sys.path.insert(0, os.path.abspath('../..'))

The import {{cookiecutter.repo_name}} should come after sys.path.insert(0, os.path.abspath('../..')).