فهرست منبع

make sure we normalize the executable path on windows (calling through 'make' might change its case)

Nicolas Cannasse 13 سال پیش
والد
کامیت
c460ad7642
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      main.ml

+ 1 - 1
main.ml

@@ -669,7 +669,7 @@ try
 			if Sys.os_type = "Unix" then
 			if Sys.os_type = "Unix" then
 				com.class_path <- ["/usr/lib/haxe/std/";"/usr/local/lib/haxe/std/";"";"/"]
 				com.class_path <- ["/usr/lib/haxe/std/";"/usr/local/lib/haxe/std/";"";"/"]
 			else
 			else
-				let base_path = normalize_path (try executable_path() with _ -> "./") in
+				let base_path = normalize_path (Extc.get_real_path (try executable_path() with _ -> "./")) in
 				com.class_path <- [base_path ^ "std/";""]);
 				com.class_path <- [base_path ^ "std/";""]);
 	com.std_path <- List.filter (fun p -> ExtString.String.ends_with p "std/" || ExtString.String.ends_with p "std\\") com.class_path;
 	com.std_path <- List.filter (fun p -> ExtString.String.ends_with p "std/" || ExtString.String.ends_with p "std\\") com.class_path;
 	let set_platform pf file =
 	let set_platform pf file =