Skip to content
Browse files

BUG: plot_directive: look for plot script files relative to the .rst …

…file directory (rather than doc source root), when plot_basedir is not given
  • Loading branch information...
1 parent b88b9c5 commit 172cb0a0cd6528b534136933e39266a4bb8c5691 @pv committed Jun 29, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/matplotlib/sphinxext/
4 lib/matplotlib/sphinxext/
@@ -88,7 +88,7 @@
Base directory, to which ``plot::`` file names are relative
to. (If None or empty, file names are relative to the
- directoly where the file containing the directive is.)
+ directory where the file containing the directive is.)
File formats to generate. List of tuples or strings::
@@ -601,7 +601,7 @@ def run(arguments, content, options, state_machine, state, lineno):
if len(arguments):
if not config.plot_basedir:
- source_file_name = os.path.join(,
+ source_file_name = os.path.join(rst_dir,
source_file_name = os.path.join(setup.confdir, config.plot_basedir,

0 comments on commit 172cb0a

Please sign in to comment.
Something went wrong with that request. Please try again.