aboutsummaryrefslogtreecommitdiff
path: root/tools/cru-py/cru/service/_data.py
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2024-11-11 01:12:29 +0800
committerYuqian Yang <crupest@crupest.life>2025-01-03 23:41:03 +0800
commitadec0f35eea3b9d955e5631d5b8e54092022116d (patch)
tree0c13bf85cec332b02c7acd1d0edb42aa9da75a32 /tools/cru-py/cru/service/_data.py
parent7e9fdc36310d1bc63af4f4a0fc2f4963ae0154aa (diff)
downloadcrupest-adec0f35eea3b9d955e5631d5b8e54092022116d.tar.gz
crupest-adec0f35eea3b9d955e5631d5b8e54092022116d.tar.bz2
crupest-adec0f35eea3b9d955e5631d5b8e54092022116d.zip
HALF WORK: 2024.1.3
Diffstat (limited to 'tools/cru-py/cru/service/_data.py')
-rw-r--r--tools/cru-py/cru/service/_data.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/cru-py/cru/service/_data.py b/tools/cru-py/cru/service/_data.py
new file mode 100644
index 0000000..f38dc23
--- /dev/null
+++ b/tools/cru-py/cru/service/_data.py
@@ -0,0 +1,12 @@
+from cru.app import ApplicationPath
+from ._base import AppFeatureProvider
+
+
+class DataManager(AppFeatureProvider):
+ def __init__(self) -> None:
+ super().__init__("data-manager")
+ self._dir = self.add_app_path("data", True)
+
+ @property
+ def data_dir(self) -> ApplicationPath:
+ return self._dir