Skip to content

Commit b82596c

Browse files
ortogoaNNiMON
authored andcommitted
Исправление загрузчика ресурсов (#7)
Исправлен путь к внутренним ресурсам
1 parent 69e1a56 commit b82596c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/annimon/ownlang/parser/SourceLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public final class SourceLoader {
1010
private SourceLoader() { }
1111

1212
public static String readSource(String name) throws IOException {
13-
InputStream is = SourceLoader.class.getResourceAsStream(name);
13+
InputStream is = SourceLoader.class.getResourceAsStream("/" + name);
1414
if (is != null) return readAndCloseStream(is);
1515

1616
is = new FileInputStream(name);

0 commit comments

Comments
 (0)