Fixed workspace creation error

This commit is contained in:
Sven Heidemann 2021-04-10 11:06:58 +02:00
parent 94b122d677
commit 70ae7dd9e6
3 changed files with 10 additions and 7 deletions

View File

@ -1,4 +1,3 @@
import json
import os
import sys
from typing import Optional

View File

@ -110,10 +110,12 @@ class ConsoleBuilder:
cls._create_file,
workspace_file_path,
{
WorkspaceSettings.__name__: {
WorkspaceSettingsNameEnum.default_project.value: project_name,
WorkspaceSettingsNameEnum.projects.value: {
project_name: project_file_path
}
}
},
text_foreground_color=ForegroundColorEnum.green,
spinner_foreground_color=ForegroundColorEnum.cyan

View File

@ -110,10 +110,12 @@ class LibraryBuilder:
cls._create_file,
workspace_file_path,
{
WorkspaceSettings.__name__: {
WorkspaceSettingsNameEnum.default_project.value: project_name,
WorkspaceSettingsNameEnum.projects.value: {
project_name: project_file_path
}
}
},
text_foreground_color=ForegroundColorEnum.green,
spinner_foreground_color=ForegroundColorEnum.cyan