dont double-add to path
This commit is contained in:
14
docs/conf.py
14
docs/conf.py
@@ -14,20 +14,6 @@
|
||||
|
||||
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.
|
||||
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
|
||||
# ---------------------
|
||||
|
||||
|
Reference in New Issue
Block a user