Browse Source

Merge pull request #2506 from Rezmason/autofs_bugfix

Haxe should never use the root directory on Unix machines as a potential classpath.
Nicolas Cannasse 11 years ago
parent
commit
568efe5b3e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.ml

+ 1 - 1
main.ml

@@ -951,7 +951,7 @@ try
 	with
 		Not_found ->
 			if Sys.os_type = "Unix" then
-				com.class_path <- ["/usr/lib/haxe/std/";"/usr/local/lib/haxe/std/";"/usr/lib/haxe/extraLibs/";"/usr/local/lib/haxe/extraLibs/";"";"/"]
+				com.class_path <- ["/usr/lib/haxe/std/";"/usr/local/lib/haxe/std/";"/usr/lib/haxe/extraLibs/";"/usr/local/lib/haxe/extraLibs/";""]
 			else
 				let base_path = normalize_path (get_real_path (try executable_path() with _ -> "./")) in
 				com.class_path <- [base_path ^ "std/";base_path ^ "extraLibs/";""]);