fix:Workspace path in onboard command ignores config setting
This commit is contained in:
@@ -178,8 +178,9 @@ def onboard():
|
|||||||
save_config(Config())
|
save_config(Config())
|
||||||
console.print(f"[green]✓[/green] Created config at {config_path}")
|
console.print(f"[green]✓[/green] Created config at {config_path}")
|
||||||
|
|
||||||
# Create workspace
|
# Create workspace , use config workspace path if exists, otherwise use ~/.nanobot/workspace; try './workspace' will create a workspace
|
||||||
workspace = get_workspace_path()
|
# on the root dir of the project
|
||||||
|
workspace = get_workspace_path(config.workspace_path)
|
||||||
|
|
||||||
if not workspace.exists():
|
if not workspace.exists():
|
||||||
workspace.mkdir(parents=True, exist_ok=True)
|
workspace.mkdir(parents=True, exist_ok=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user