Browse Source

fix Sys.getEnv (close #5782)

Nicolas Cannasse 8 years ago
parent
commit
d32dd16f1b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/hl/_std/Sys.hx

+ 1 - 1
std/hl/_std/Sys.hx

@@ -71,7 +71,7 @@ class Sys {
 	}
 	}
 
 
 	public static function getEnv( s : String ) : String {
 	public static function getEnv( s : String ) : String {
-		var v = get_env(s.bytes);
+		var v = get_env(getPath(s.bytes));
 		if( v == null )
 		if( v == null )
 			return null;
 			return null;
 		return makePath(v);
 		return makePath(v);