Skip to content

Commit

Permalink
fix variable
Browse files Browse the repository at this point in the history
  • Loading branch information
YurelyCamacho committed Aug 26, 2024
1 parent a228dd2 commit 8ea6d32
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
mod_symbol = '<code class="doc-symbol doc-symbol-nav doc-symbol-module"></code>'

root = Path(__file__).parent.parent
src = {{ cookiecutter.project_layout == "src" }}
{% if cookiecutter.project_layout == "src" -%}
{% set src = root / "src" -%}
{% else -%}
{% set src = cookiecutter.package_slug -%}
{% endif -%}
project_layout = "{{ cookiecutter.project_layout }}"
if project_layout == "src":
src = root / "src" / "{{ cookiecutter.package_slug }}"
else:
src = Path("{{ cookiecutter.package_slug }}")

for path in sorted(src.rglob("*.py")):
module_path = path.relative_to(src).with_suffix("")
Expand Down

0 comments on commit 8ea6d32

Please sign in to comment.