Skip to content

Commit

Permalink
Fix override filepath variable
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximumFX committed Sep 6, 2024
1 parent 9b81da4 commit aa5fc50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tk-readme-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def generate_readme(

# Decide mode if not provided
if mode is None:
filepath = filepath.parent / "env" / "includes"
if filepath.is_dir():
includes_filepath = filepath.parent / "env" / "includes"
if includes_filepath.is_dir():
mode = Mode.config
else:
mode = Mode.general
Expand Down

0 comments on commit aa5fc50

Please sign in to comment.