Browse Source

Lua : add Sys.programPath

Justin Donaldson 9 years ago
parent
commit
8992d49448
1 changed files with 4 additions and 0 deletions
  1. 4 0
      std/lua/_std/Sys.hx

+ 4 - 0
std/lua/_std/Sys.hx

@@ -75,6 +75,10 @@ class Sys {
 	}
 	}
 
 
 	public inline static function executablePath() : String {
 	public inline static function executablePath() : String {
+		return programPath();
+	}
+
+	public inline static function programPath() : String {
 		return Lua.arg[0];
 		return Lua.arg[0];
 	}
 	}