From d8866985bf66e182e420d5561242d2482a478e96 Mon Sep 17 00:00:00 2001 From: Pradish Bijukchhe Date: Tue, 24 Sep 2024 22:32:11 +0545 Subject: [PATCH] Fix config.py being replaced --- clientele/generators/standard/generator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clientele/generators/standard/generator.py b/clientele/generators/standard/generator.py index d7618c2..387b27d 100644 --- a/clientele/generators/standard/generator.py +++ b/clientele/generators/standard/generator.py @@ -72,6 +72,8 @@ def generate_templates_files(self): write_func, ) in self.file_name_writer_tuple: if exists(f"{self.output_dir}/{client_file}"): + if client_file == "config.py": # do not replace config.py if exists + continue remove(f"{self.output_dir}/{client_file}") template = writer.templates.get_template(client_template_file) content = template.render(