Skip to content

Commit

Permalink
fix: new_plugin command replace
Browse files Browse the repository at this point in the history
  • Loading branch information
Virako committed Aug 8, 2022
1 parent d6e232d commit 8fca860
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flamapy/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ def cmd_new_plugin(options: argparse.Namespace) -> None:

copy_files = copytree(src, dst, dirs_exist_ok=True)

for copy_file in Path(copy_files).glob('**/.*'):
for copy_file in Path(copy_files).glob('**/*'):
if copy_file.is_dir():
continue
with open(copy_file, "r", encoding="utf-8") as file:
lines = file.readlines()
with open(copy_file, "w", encoding="utf-8") as filewrite:
Expand Down

0 comments on commit 8fca860

Please sign in to comment.