From 028d0d3383408efe8d65d646c6a88164d578ac67 Mon Sep 17 00:00:00 2001 From: Cody Scott Date: Fri, 8 Dec 2023 11:04:37 -0500 Subject: [PATCH] Remove __init__.py from example_site --- htmd/example_site/__init__.py | 0 htmd/example_site/pages/__init__.py | 0 htmd/example_site/posts/__init__.py | 0 htmd/example_site/static/__init__.py | 0 htmd/example_site/templates/__init__.py | 0 htmd/utils.py | 3 +-- 6 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 htmd/example_site/__init__.py delete mode 100644 htmd/example_site/pages/__init__.py delete mode 100644 htmd/example_site/posts/__init__.py delete mode 100644 htmd/example_site/static/__init__.py delete mode 100644 htmd/example_site/templates/__init__.py diff --git a/htmd/example_site/__init__.py b/htmd/example_site/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/htmd/example_site/pages/__init__.py b/htmd/example_site/pages/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/htmd/example_site/posts/__init__.py b/htmd/example_site/posts/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/htmd/example_site/static/__init__.py b/htmd/example_site/static/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/htmd/example_site/templates/__init__.py b/htmd/example_site/templates/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/htmd/utils.py b/htmd/utils.py index 11c28f0..317e408 100644 --- a/htmd/utils.py +++ b/htmd/utils.py @@ -82,8 +82,7 @@ def copy_missing_templates(): template_dir = files('htmd.example_site') / 'templates' for template_file in sorted(template_dir.iterdir()): skip_file = False - for skip_file_name in ('__init__.py', '__pycache__',): - # __init__.py is in this directory for importlib.resources to work + for skip_file_name in ('__pycache__',): if skip_file_name in str(template_file): skip_file = True break