@@ -465,7 +465,7 @@ async def env_save_async(self, path: str):
465465 Save the current environment to a file
466466 """
467467 result = await self .run_async ('env.save' , {
468- "path" : path ,
468+ "path" : os . path . abspath ( path ) ,
469469 })
470470 if "error" in result :
471471 raise ServerError (result ["desc" ])
@@ -476,7 +476,7 @@ async def env_load_async(self, path: str):
476476 Load the current environment from a file
477477 """
478478 result = await self .run_async ('env.load' , {
479- "path" : path ,
479+ "path" : os . path . abspath ( path ) ,
480480 })
481481 if "error" in result :
482482 raise ServerError (result ["desc" ])
@@ -489,7 +489,7 @@ async def goal_save_async(self, goal_state: GoalState, path: str):
489489 """
490490 result = await self .run_async ('goal.save' , {
491491 "id" : goal_state .state_id ,
492- "path" : path ,
492+ "path" : os . path . abspath ( path ) ,
493493 })
494494 if "error" in result :
495495 raise ServerError (result ["desc" ])
@@ -503,7 +503,7 @@ async def goal_load_async(self, path: str) -> GoalState:
503503 User is responsible for keeping track of the environment.
504504 """
505505 result = await self .run_async ('goal.load' , {
506- "path" : path ,
506+ "path" : os . path . abspath ( path ) ,
507507 })
508508 if "error" in result :
509509 raise ServerError (result ["desc" ])
0 commit comments