diff --git a/src/betterproto/plugin/parser.py b/src/betterproto/plugin/parser.py index 5d23e4f..d503ee0 100644 --- a/src/betterproto/plugin/parser.py +++ b/src/betterproto/plugin/parser.py @@ -131,6 +131,7 @@ def generate_code(request: CodeGeneratorRequest) -> CodeGeneratorResponse: directory.joinpath("__init__.py") for path in output_paths for directory in path.parents + if not directory.joinpath("__init__.py").exists() } - output_paths for init_file in init_files: