diff --git a/src/main/java/com/annimon/ownlang/parser/SourceLoader.java b/src/main/java/com/annimon/ownlang/parser/SourceLoader.java index 67e49cf..4621d13 100644 --- a/src/main/java/com/annimon/ownlang/parser/SourceLoader.java +++ b/src/main/java/com/annimon/ownlang/parser/SourceLoader.java @@ -10,7 +10,7 @@ public final class SourceLoader { private SourceLoader() { } public static String readSource(String name) throws IOException { - InputStream is = SourceLoader.class.getResourceAsStream(name); + InputStream is = SourceLoader.class.getResourceAsStream("/" + name); if (is != null) return readAndCloseStream(is); is = new FileInputStream(name);