Allow jagidir $use directives to specify absolute paths.
[jagi.git] / src / jagi / fs / Compiler.java
index e7a66a1..60a1c24 100644 (file)
@@ -235,6 +235,12 @@ public class Compiler {
     }
 
     private Path findlib(String nm) {
+       try {
+           Path p = Paths.get(nm);
+           if(Files.isRegularFile(p))
+               return(p);
+       } catch(InvalidPathException e) {
+       }
        for(Path dir : searchpath) {
            Path jar = dir.resolve(nm + ".jar");
            if(Files.isRegularFile(jar))