瀏覽代碼

- fixed previous features

Laurent Bedubourg 18 年之前
父節點
當前提交
3db198e86c
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      std/mtwin/templo/Loader.hx

+ 3 - 3
std/mtwin/templo/Loader.hx

@@ -65,12 +65,12 @@ class Loader {
 		}
 		var result = 0;
 
-		var macroArg = if (MACROS == null) "" else "-m "+BASE_DIR+MACROS;
+		var macroArg = if (MACROS == null) "" else "-m \""+BASE_DIR+MACROS+"\"";
 
 		if (BASE_DIR == "")
-			result = Sys.command("temploc -s \""+macroArg+"\" -o \""+TMP_DIR+"\" \""+path+"\" 2> \""+TMP_DIR+"temploc.out\"");
+			result = Sys.command("temploc -s "+macroArg+" -o \""+TMP_DIR+"\" \""+path+"\" 2> \""+TMP_DIR+"temploc.out\"");
 		else
-			result = Sys.command("temploc -s \""+macroArg+"\" -o \""+TMP_DIR+"\" -r \""+BASE_DIR+"\" \""+path+"\" 2> \""+TMP_DIR+"temploc.out\"");
+			result = Sys.command("temploc -s "+macroArg+" -o \""+TMP_DIR+"\" -r \""+BASE_DIR+"\" \""+path+"\" 2> \""+TMP_DIR+"temploc.out\"");
 		if( result != 0 )
 			throw "temploc compilation or "+path+" failed : "+neko.io.File.getContent(Loader.TMP_DIR+"temploc.out");
 	}