Browse Source

Lua : add simple shell available routine for Lib

Justin Donaldson 9 years ago
parent
commit
4cf445fef0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      std/lua/Lib.hx

+ 3 - 0
std/lua/Lib.hx

@@ -59,5 +59,8 @@ class Lib {
 		}
 		return ret;
 	}
+	public inline static function isShellAvailable() : Bool {
+		return Os.execute();
+	}
 
 }