Minor fix
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
package lime.system;
|
||||
#if !macro
|
||||
|
||||
|
||||
#if js
|
||||
@@ -337,4 +338,38 @@ class System {
|
||||
#end
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#else
|
||||
|
||||
|
||||
import haxe.macro.Compiler;
|
||||
import haxe.macro.Context;
|
||||
import sys.FileSystem;
|
||||
|
||||
|
||||
class System {
|
||||
|
||||
|
||||
public static function includeTools () {
|
||||
|
||||
var paths = Context.getClassPath ();
|
||||
|
||||
for (path in paths) {
|
||||
|
||||
if (FileSystem.exists (path + "/tools/CommandLineTools.hx")) {
|
||||
|
||||
Compiler.addClassPath (path + "/tools");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#end
|
||||
Reference in New Issue
Block a user