From a17b44daf714fed3184df2123b2a600bbabfd49e Mon Sep 17 00:00:00 2001 From: pyth0n1c <87383215+pyth0n1c@users.noreply.github.com> Date: Fri, 12 Aug 2022 12:09:17 -0700 Subject: [PATCH] Remove lookups from copied ESCU directory. --- .../contentctl_core/application/use_cases/initialize.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/contentctl_project/contentctl_core/application/use_cases/initialize.py b/bin/contentctl_project/contentctl_core/application/use_cases/initialize.py index 60c970c4bd..6c3779e6f3 100644 --- a/bin/contentctl_project/contentctl_core/application/use_cases/initialize.py +++ b/bin/contentctl_project/contentctl_core/application/use_cases/initialize.py @@ -126,6 +126,11 @@ class Initialize: def copy_dist_escu_to_dist_app(self): print("Copying ESCU Template output dir to retain static app files...",end='') shutil.copytree(self.escu_path, self.dist_app_path, dirs_exist_ok=True) + #delete all the contents in the lookups folder + lookups_path = os.path.join(self.dist_app_path, "lookups") + files = glob.glob(os.path.join(lookups_path, "*")) + for filename in files: + os.remove(filename) print("done") def simple_replace_line(self, filename:str, original:str,updated:str):