##// END OF EJS Templates
save figures in the output directory...
Min RK -
Show More
@@ -850,14 +850,14 b' class IPythonDirective(Directive):'
850 850 config = self.state.document.settings.env.config
851 851
852 852 # get config variables to set figure output directory
853 confdir = self.state.document.settings.env.app.confdir
853 outdir = self.state.document.settings.env.app.outdir
854 854 savefig_dir = config.ipython_savefig_dir
855 855 source_dir = os.path.dirname(self.state.document.current_source)
856 856 if savefig_dir is None:
857 savefig_dir = config.html_static_path
857 savefig_dir = config.html_static_path or '_static'
858 858 if isinstance(savefig_dir, list):
859 savefig_dir = savefig_dir[0] # safe to assume only one path?
860 savefig_dir = os.path.join(confdir, savefig_dir)
859 savefig_dir = os.path.join(*savefig_dir)
860 savefig_dir = os.path.join(outdir, savefig_dir)
861 861
862 862 # get regex and prompt stuff
863 863 rgxin = config.ipython_rgxin
General Comments 0
You need to be logged in to leave comments. Login now