Explorar o código

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

Simon Krajewski %!s(int64=8) %!d(string=hai) anos
pai
achega
5adc1e1054
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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