@@ -24,7 +24,6 @@ class RunScript {
24
24
Sys .setCwd (workingDirectory );
25
25
} catch (e : Dynamic ) {
26
26
error (" Failed to set current working directory to [" + workingDirectory + " ]" );
27
- Sys .exit (1 );
28
27
}
29
28
30
29
if (args .length == 0 ) {
@@ -71,13 +70,21 @@ class RunScript {
71
70
interp .variables .set (" StringTools" , StringTools );
72
71
interp .variables .set (" Sys" , Sys );
73
72
interp .variables .set (" Xml" , Xml );
74
- interp .variables .set (" sys.FileSystem" , sys. FileSystem );
75
- interp .variables .set (" sys.io.File" , sys.io. File );
76
- interp .variables .set (" sys.net.Host" , sys.net. Host );
77
- interp .variables .set (" haxe.Json" , haxe. Json );
78
- interp .variables .set (" haxe.Http" , haxe. Http );
79
- interp .variables .set (" haxe.Serializer" , haxe. Serializer );
80
- interp .variables .set (" haxe.Unserializer" , haxe. Unserializer );
73
+ interp .variables .set (" sys" , {
74
+ " FileSystem" : sys. FileSystem ,
75
+ " io" : {
76
+ " File" : sys.io. File
77
+ },
78
+ " net" : {
79
+ " Host" : sys.net. Host
80
+ }
81
+ });
82
+ interp .variables .set (" haxe" , {
83
+ " Json" : haxe. Json ,
84
+ " Http" : haxe. Http ,
85
+ " Serializer" : haxe. Serializer ,
86
+ " Unserializer" : haxe. Unserializer
87
+ });
81
88
82
89
info (interp .execute (program ));
83
90
}
0 commit comments