Prechádzať zdrojové kódy

[js] create directory on setCustomJSGenerator (closes #6539)

Simon Krajewski 8 rokov pred
rodič
commit
5adc1e1054
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      src/macro/macroContext.ml

+ 1 - 0
src/macro/macroContext.ml

@@ -225,6 +225,7 @@ let make_macro_api ctx p =
 			tp.tp_meta <- tp.tp_meta @ m;
 		);
 		MacroApi.set_js_generator = (fun gen ->
+			Common.mkdir_from_path ctx.com.file;
 			let js_ctx = Genjs.alloc_ctx ctx.com in
 			ctx.com.js_gen <- Some (fun() ->
 				let t = macro_timer ctx ["jsGenerator"] in