Fixing alterations to sys.path

Fixes bug 1064249

sys.path should be extended not appended to

Change-Id: I3404a50b16b843b47f5082676029a4dd3b03f812
This commit is contained in:
Derek Higgins 2012-10-09 04:30:28 -04:00
parent fc1c5a5fd0
commit 387744197e

View File

@ -33,7 +33,7 @@ import os
# If extensions (or modules to document with autodoc) are in another directory, # 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 # 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. # documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.append([os.path.abspath('../swift'), os.path.abspath('..'), sys.path.extend([os.path.abspath('../swift'), os.path.abspath('..'),
os.path.abspath('../bin')]) os.path.abspath('../bin')])
# -- General configuration ---------------------------------------------------- # -- General configuration ----------------------------------------------------