diff --git a/code-execution/src/main/kotlin/io/github/llmagentbuilder/codeexecution/nonsandboxed/NonSandboxedCodeExecutor.kt b/code-execution/src/main/kotlin/io/github/llmagentbuilder/codeexecution/nonsandboxed/NonSandboxedCodeExecutor.kt index b81bdb4..208ac59 100644 --- a/code-execution/src/main/kotlin/io/github/llmagentbuilder/codeexecution/nonsandboxed/NonSandboxedCodeExecutor.kt +++ b/code-execution/src/main/kotlin/io/github/llmagentbuilder/codeexecution/nonsandboxed/NonSandboxedCodeExecutor.kt @@ -10,7 +10,7 @@ abstract class NonSandboxedCodeExecutor : CodeExecutor { .withArgs(*args(input).toTypedArray()) .withWorkingDirectory( (workingDirectory() ?: ".") - .run { Paths.get(this).toAbsolutePath() } + .run { Paths.get(this).toAbsolutePath().normalize() } .toFile()) .ignoreExitStatus() .run()