Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 77ee624

Browse files
committed
tinypages/conf.py doesn't need to manipulate sys.path.
When tests are being run it is already necessary that the version of matplotlib being tested is the one in sys.path, so we don't need to manipulate sys.path additionally.
1 parent f008953 commit 77ee624

File tree

1 file changed

+0
-7
lines changed
  • lib/matplotlib/tests/tinypages

1 file changed

+0
-7
lines changed

lib/matplotlib/tests/tinypages/conf.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
import sys
2-
from os.path import join as pjoin, abspath
31
import sphinx
42
from distutils.version import LooseVersion
53

6-
# If extensions (or modules to document with autodoc) are in another directory,
7-
# add these directories to sys.path here. If the directory is relative to the
8-
# documentation root, use os.path.abspath to make it absolute, like shown here.
9-
sys.path.insert(0, abspath(pjoin('..', '..')))
10-
114
# -- General configuration ------------------------------------------------
125

136
extensions = ['matplotlib.sphinxext.plot_directive']

0 commit comments

Comments
 (0)