Skip to content

Commit

Permalink
Merge pull request #36 from sandbox-pokhara/fix-replace-config
Browse files Browse the repository at this point in the history
Fix config.py being replaced
  • Loading branch information
phalt authored Sep 25, 2024
2 parents 701c809 + d886698 commit fbeeef3
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 fbeeef3

Please sign in to comment.