diff --git a/src/idl/dustem_fit_sed_readme.pro b/src/idl/dustem_fit_sed_readme.pro index e2586ab..57e554e 100644 --- a/src/idl/dustem_fit_sed_readme.pro +++ b/src/idl/dustem_fit_sed_readme.pro @@ -71,7 +71,7 @@ ENDIF ELSE BEGIN ENDELSE IF keyword_set(png) THEN BEGIN - dir_png=!dustem_data+'/Figures/' + dir_png=!dustem_dat+'/Figures/' force_mkdir,dir_png ENDIF diff --git a/src/idl/dustem_run_readme.pro b/src/idl/dustem_run_readme.pro index e17a4e6..5ff6beb 100644 --- a/src/idl/dustem_run_readme.pro +++ b/src/idl/dustem_run_readme.pro @@ -51,11 +51,6 @@ IF keyword_set(help) THEN BEGIN goto,the_end ENDIF -IF keyword_set(png) THEN BEGIN - dir_png=!dustem_data+'/Figures/' - force_mkdir,dir_png -ENDIF - loadct,13 IF keyword_set(model) THEN BEGIN @@ -69,6 +64,11 @@ dustem_init,model=use_model !dustem_verbose=1 !dustem_show_plot=1 +IF keyword_set(png) THEN BEGIN + dir_png=!dustem_dat+'/Figures/' + force_mkdir,dir_png +ENDIF + IF not keyword_set(dir) THEN BEGIN ; CASE getenv('DUSTEM_WHICH') OF CASE !dustem_which OF -- libgit2 0.21.2