diff --git a/.idea/runConfigurations/SwotTest.xml b/.idea/runConfigurations/SwotTest.xml new file mode 100644 index 00000000000..fd1b85e7f3f --- /dev/null +++ b/.idea/runConfigurations/SwotTest.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/swot/Compiler.kt b/src/swot/Compiler.kt index 4e38a15b1d0..978b8083b15 100644 --- a/src/swot/Compiler.kt +++ b/src/swot/Compiler.kt @@ -15,7 +15,7 @@ fun main(args: Array) { val root = File("lib/domains") root.recurse { if (it.isFile()) { - val parts = root.relativePath(it).trimTrailing(".txt").split('/').toList() + val parts = root.relativePath(it).replace('\\', '/').trimTrailing(".txt").split('/').toList() if (!checkSet(CompilationState.blacklist, parts) && !checkSet(CompilationState.domains, parts)) { CompilationState.domains.add(parts.reverse().join(".")) }