Skip to content

Commit

Permalink
🔧 fix file io due to wrong cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed May 13, 2024
1 parent 72094d7 commit 171bbed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/codeboxapi/box/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def start(self) -> CodeBoxStatus:
self.kernel = KernelManager(
ip=os.getenv("LOCALHOST", "127.0.0.1"),
)
self.kernel.start_kernel()
self.kernel.start_kernel(cwd=self.cwd)
return CodeBoxStatus(status="started")

def _check_installed(self) -> None:
Expand All @@ -78,7 +78,7 @@ async def astart(self) -> CodeBoxStatus:
self.kernel = KernelManager(
ip=os.getenv("LOCALHOST", "127.0.0.1"),
)
await self.kernel._async_start_kernel()
await self.kernel._async_start_kernel(cwd=self.cwd)
return CodeBoxStatus(status="started")

def status(self) -> CodeBoxStatus:
Expand Down

0 comments on commit 171bbed

Please sign in to comment.