It seems that this commit [1] changed the default directory for the sphinx plots directory (now needs to be alongside the directive and not in the directory above it?) and now our project's docs will not build across different versions of matplotlib without some magic. So I tried setting
from os.path import dirname, abspath plot_basedir = dirname(dirname(abspath(__file__))) in our sphinx conf.py. We have source/conf.py and plots/ is in the parent directory of source for the directive plot:: plots/some_file.py. However, now I get this error [2] and this traceback [3]. It seems the build/plot_directive folder is created before a subsequent call to os.makedir. If I move plots to its expected default location and then set the plot_basedir manually it's fine. Is this a bug or user error? Is there some reason our plots directory can't be in the parent directory of source? [1] https://github.com/matplotlib/matplotlib/commit/a205f5460f13d47aa5b5fad662005c382dd096ee [2] http://pastebin.com/KQp11CiS [3] http://pastebin.com/4LY1Pt1Q Skipper ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel