From 82065649547106ef89182fa645044a2b449a294a Mon Sep 17 00:00:00 2001 From: Raphael Cohen Date: Fri, 20 Oct 2023 09:11:58 +0200 Subject: [PATCH] fix: Module import in modules with spaces --- .../new_module/template/{{cookiecutter.module_dir}}/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/main.py b/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/main.py index ffb6584..7221238 100644 --- a/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/main.py +++ b/sekoia_automation/scripts/new_module/template/{{cookiecutter.module_dir}}/main.py @@ -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()