assets/src/org/ruboto/Script.java in ruboto-0.9.0 vs assets/src/org/ruboto/Script.java in ruboto-0.10.0.rc.0

- old
+ new

@@ -150,18 +150,18 @@ buffer.close(); } } } - // public File getFile() { - // for (String dir : scriptsDir) { - // File f = new File(dir, name); - // if (f.exists()) { - // return f; - // } - // } - // return new File(scriptsDir[0], name); - // } + public File getFile() { + for (String dir : scriptsDir) { + File f = new File(dir, name); + if (f.exists()) { + return f; + } + } + return new File(scriptsDir[0], name); + } public String getName() { return name; }