Skip to content

Commit

Permalink
fix: Fix execution on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
felipebz committed Jun 29, 2024
1 parent 5ff7849 commit c28770c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/br/com/felipezorzo/zpa/cli/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Main(private val args: Arguments) {
LogManager.getLogManager().readConfiguration(it)
}

val codePath = Path.of(Main::class.java.protectionDomain.codeSource.location.path)
val codePath = Path.of(Main::class.java.protectionDomain.codeSource.location.toURI())
val appHome = if (codePath.extension == "jar" && (codePath.parent.name == "lib" || codePath.parent.name == "jars")) {
codePath.parent.parent.absolute()
} else {
Expand Down

0 comments on commit c28770c

Please sign in to comment.