refactor: remove source_style enum, do it with directories

This commit is contained in:
Dobin
2024-05-19 10:33:06 +01:00
parent 32000b5b78
commit 849df50dc8
11 changed files with 110 additions and 119 deletions
+4 -1
View File
@@ -34,9 +34,12 @@ class Project():
def prepare_project(project_name, settings):
src = "{}{}/".format(PATH_CARRIER, settings.source_style.value)
src = "{}{}/".format(PATH_CARRIER, settings.carrier_name)
dst = "{}{}/".format(PATH_WEB_PROJECT, project_name)
if not os.path.exists(dst):
os.makedirs(dst)
# delete all files in dst directory
for file in os.listdir(dst):
if file == "project.pickle":