소스 검색

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

Simon Krajewski 8 년 전
부모
커밋
5adc1e1054
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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