Selaa lähdekoodia

move Sys to _std and add exit

Simon Krajewski 11 vuotta sitten
vanhempi
commit
f1a52d8a16
1 muutettua tiedostoa jossa 4 lisäystä ja 3 poistoa
  1. 4 3
      std/python/_std/Sys.hx

+ 4 - 3
std/python/Sys.hx → std/python/_std/Sys.hx

@@ -1,12 +1,13 @@
-
-package python;
-
 import python.lib.Time;
 
+@:preCode("import sys")
 class Sys {
 
 	public static function time () {
 		return Time.time()/1000;
 	}
 
+	public static function exit(code:Int) {
+		python.lib.Sys.exit(code);
+	}
 }