diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-08-17 08:35:08 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-08-17 08:35:08 -0400 |
commit | dbf930ed930d34ee698fd1cb31b540be3ee1e959 (patch) | |
tree | a95ae6534a1da96588d4aca9bcc014a34eee6097 | |
parent | 0cf4475f33baf74235d563d86979a9546bc7406b (diff) | |
parent | 5804094016f1b5188c14d1c69fdae7c55f1f242d (diff) | |
download | external_python_setuptools-dbf930ed930d34ee698fd1cb31b540be3ee1e959.tar.gz external_python_setuptools-dbf930ed930d34ee698fd1cb31b540be3ee1e959.tar.bz2 external_python_setuptools-dbf930ed930d34ee698fd1cb31b540be3ee1e959.zip |
For the sake of expedience, I'm going to accept this and tweak it further. In the future, it's better to have a ticket and reference that ticket in the pull request and commits for better visibility to the changes and issues that it creates. I also suggest providing better commit messages. "Fix docs to work" is barely better than "changed things". The commit message should attempt to communicate the why and the how of the change at a high level. Something like "Added path in sphinx docs to allow setup.py to be imported when docs are built from docs directory."
-rw-r--r-- | docs/conf.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/docs/conf.py b/docs/conf.py index 9929aaf6..8be5c3dd 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,14 +12,17 @@ # autogenerated file. # # All configuration values have a default; values that are commented out -# serve to show the default. - -import setup as setup_script +# serve to show the default # 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. -#sys.path.append(os.path.abspath('.')) + +# Allow Sphinx to find the setup command that is imported below, as referenced above. +import sys, os +sys.path.append(os.path.abspath('..')) + +import setup as setup_script # -- General configuration ----------------------------------------------------- |