From a585d159a5acf03d0d75fc39d74ff5ee24e28b8a Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Wed, 16 Oct 2024 17:32:13 +0200 Subject: name based intent handling --- modules/intents/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 modules/intents/__init__.py (limited to 'modules/intents/__init__.py') diff --git a/modules/intents/__init__.py b/modules/intents/__init__.py new file mode 100644 index 0000000..1cb91d4 --- /dev/null +++ b/modules/intents/__init__.py @@ -0,0 +1,4 @@ +from os.path import dirname, basename, isfile, join +import glob +modules = glob.glob(join(dirname(__file__), "*.py")) +__all__ = [ basename(f)[:-3] for f in modules if isfile(f) and not f.endswith('__init__.py')] \ No newline at end of file -- cgit v1.2.3-70-g09d2