diff options
| author | Chris McDonough <chrism@agendaless.com> | 2008-07-16 18:27:56 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2008-07-16 18:27:56 +0000 |
| commit | 9974be2fe4568e6334e03a2af9f0eeaddc794be3 (patch) | |
| tree | 839c5c21bc2a402085c3a3229f70beb86fbff896 /docs/conf.py | |
| parent | f70c23cb4012450c5f302d74a9f7e41c0f7710aa (diff) | |
| download | pyramid-9974be2fe4568e6334e03a2af9f0eeaddc794be3.tar.gz pyramid-9974be2fe4568e6334e03a2af9f0eeaddc794be3.tar.bz2 pyramid-9974be2fe4568e6334e03a2af9f0eeaddc794be3.zip | |
Oh the humanity of this hack.
Diffstat (limited to 'docs/conf.py')
| -rw-r--r-- | docs/conf.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py index 5df7f9b29..6a349082f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -16,7 +16,16 @@ import sys, os # If your extensions are in another directory, add it 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('some/directory')) +parent = os.path.dirname(os.path.dirname(__file__)) +sys.path.append(os.path.abspath(parent)) +wd = os.getcwd() +os.chdir(parent) +os.system('%s setup.py test -q' % sys.executable) +os.chdir(wd) + +for item in os.listdir(parent): + if item.endswith('.egg'): + sys.path.append(os.path.join(parent, item)) # General configuration # --------------------- |
