TNO Intern

Commit 4ed9e8f5 authored by Arjo Segers's avatar Arjo Segers
Browse files

Create output directory if necessary.

parent aea2ad8a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -337,6 +337,9 @@ class CSO_Inquire_Plot( utopya.UtopyaRc ) :
            #endfor
            ax.legend( hh, labs, loc='upper left' )

            # directory:
            fig_dir = os.path.dirname( fig_file )
            if not os.path.isdir(fig_dir) : os.makedirs( fig_dir )
            # save:
            fig.savefig( fig_file )