Skip to content

Commit

Permalink
fix: Module import in modules with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkheir committed Oct 20, 2023
1 parent 96aa443 commit 8206564
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from {{cookiecutter.module_name.lower()}}_modules import {{cookiecutter.module_name.capitalize()}}Module
from {{cookiecutter.module_name.lower().replace(" ", "_")}}_modules import {{cookiecutter.module_name.title().replace(" ", "")}}Module

if __name__ == "__main__":
module = {{cookiecutter.module_name.title().replace(" ", "")}}Module()
Expand Down

0 comments on commit 8206564

Please sign in to comment.