Skip to content

Commit

Permalink
add some verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
mcflugen committed Mar 24, 2024
1 parent 4918faf commit 260ae7e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions babelizer/_cookiecutter.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,15 @@ def datetime_format(value: datetime, format_: str = "%Y-%M-%D") -> str:
target_path = os.path.join(target_dir, render_path(filename, extra_context))

with open(target_path, "w") as fp:
fp.write(
env.get_template(os.path.join(rel_path, filename)).render(
**extra_context
)
)
print(os.path.join(rel_path, filename))
_template = env.get_template(os.path.join(rel_path, filename))
fp.write(_template.render(**extra_context))

# fp.write(
# env.get_template(os.path.join(rel_path, filename)).render(
# **extra_context
# )
# )

with as_cwd(output_dir):
run(extra_context)
Expand Down

0 comments on commit 260ae7e

Please sign in to comment.