Skip to content

Commit

Permalink
Fix config.py being replaced
Browse files Browse the repository at this point in the history
  • Loading branch information
pradishb committed Sep 24, 2024
1 parent 374eaa4 commit d886698
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clientele/generators/standard/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit d886698

Please sign in to comment.