Skip to content

Commit fdeba2f

Browse files
authored
Merge pull request #90 from rhiza-fr/main
Fix: More posix path issues when preparing image
2 parents 553b3cb + c601037 commit fdeba2f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llm_sandbox/core/session_base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,10 @@ def _run_code() -> ConsoleOutput:
393393
code_dest_file = (
394394
Path(self.config.workdir) / f"{uuid.uuid4().hex}.{self.language_handler.file_extension}"
395395
)
396-
self.copy_to_runtime(temp_file_path, str(code_dest_file))
396+
code_dest_path_posix = code_dest_file.as_posix()
397+
self.copy_to_runtime(temp_file_path, code_dest_path_posix)
397398

398-
commands = self.language_handler.get_execution_commands(str(code_dest_file))
399+
commands = self.language_handler.get_execution_commands(code_dest_path_posix)
399400
return self.execute_commands(
400401
cast("list[str | tuple[str, str | None]]", commands),
401402
workdir=self.config.workdir,

0 commit comments

Comments
 (0)