Permalink
Browse files

exporting classes fully qualified - 2nd attempt

  • Loading branch information...
sebthom committed Dec 4, 2015
1 parent aa093db commit c00f8e95e96e4e628b3354e68da5b7edee4eff6f
Showing with 15 additions and 8 deletions.
  1. +15 −8 script/RunScript.hx
View
@@ -24,7 +24,6 @@ class RunScript {
Sys.setCwd(workingDirectory);
} catch (e:Dynamic) {
error("Failed to set current working directory to [" + workingDirectory + "]");
Sys.exit(1);
}
if (args.length == 0) {
@@ -71,13 +70,21 @@ class RunScript {
interp.variables.set("StringTools", StringTools);
interp.variables.set("Sys", Sys);
interp.variables.set("Xml", Xml);
interp.variables.set("sys.FileSystem", sys.FileSystem);
interp.variables.set("sys.io.File", sys.io.File);
interp.variables.set("sys.net.Host", sys.net.Host);
interp.variables.set("haxe.Json", haxe.Json);
interp.variables.set("haxe.Http", haxe.Http);
interp.variables.set("haxe.Serializer", haxe.Serializer);
interp.variables.set("haxe.Unserializer", haxe.Unserializer);
interp.variables.set("sys", {
"FileSystem": sys.FileSystem,
"io": {
"File": sys.io.File
},
"net": {
"Host": sys.net.Host
}
});
interp.variables.set("haxe", {
"Json": haxe.Json,
"Http": haxe.Http,
"Serializer": haxe.Serializer,
"Unserializer": haxe.Unserializer
});
info(interp.execute(program));
}

0 comments on commit c00f8e9

Please sign in to comment.