Use appropriate path seperator on Linux

This commit is contained in:
Eric Förster 2019-03-09 19:59:46 +01:00
parent b94125d729
commit 3d2179032f

View file

@ -43,7 +43,7 @@ class LatexResolver(val filesByName: Map<String, File>) {
try {
val texmf = runKpsewhich("-var-value", "TEXMF")
return runKpsewhich("--expand-braces=$texmf")
.split(';')
.split(File.pathSeparatorChar)
.map { Paths.get(it.replace("!", "")) }
.filter { Files.exists(it) }
.distinct()