From cb10d0ca1e038a7a168a46a3b7810d0bfb2977c9 Mon Sep 17 00:00:00 2001 From: Josh Thomas Date: Tue, 10 Dec 2024 12:09:57 -0600 Subject: [PATCH] move scripts to dedicated module (#13) --- crates/djls-python/src/scripts.rs | 2 +- python/djls/scripts/__init__.py | 0 python/djls/{ => scripts}/django_setup.py | 0 python/djls/{ => scripts}/has_import.py | 0 python/djls/{ => scripts}/installed_apps_check.py | 0 python/djls/{ => scripts}/python_setup.py | 0 6 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 python/djls/scripts/__init__.py rename python/djls/{ => scripts}/django_setup.py (100%) rename python/djls/{ => scripts}/has_import.py (100%) rename python/djls/{ => scripts}/installed_apps_check.py (100%) rename python/djls/{ => scripts}/python_setup.py (100%) diff --git a/crates/djls-python/src/scripts.rs b/crates/djls-python/src/scripts.rs index b976c77..bd7e2a0 100644 --- a/crates/djls-python/src/scripts.rs +++ b/crates/djls-python/src/scripts.rs @@ -3,7 +3,7 @@ macro_rules! include_script { ($name:expr) => { include_str!(concat!( env!("CARGO_WORKSPACE_DIR"), - "/python/djls/", + "python/djls/scripts/", $name, ".py" )) diff --git a/python/djls/scripts/__init__.py b/python/djls/scripts/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/python/djls/django_setup.py b/python/djls/scripts/django_setup.py similarity index 100% rename from python/djls/django_setup.py rename to python/djls/scripts/django_setup.py diff --git a/python/djls/has_import.py b/python/djls/scripts/has_import.py similarity index 100% rename from python/djls/has_import.py rename to python/djls/scripts/has_import.py diff --git a/python/djls/installed_apps_check.py b/python/djls/scripts/installed_apps_check.py similarity index 100% rename from python/djls/installed_apps_check.py rename to python/djls/scripts/installed_apps_check.py diff --git a/python/djls/python_setup.py b/python/djls/scripts/python_setup.py similarity index 100% rename from python/djls/python_setup.py rename to python/djls/scripts/python_setup.py