summaryrefslogtreecommitdiff
path: root/.local/share/Anki2/addons21/anki_reworked/utils/modules.py
diff options
context:
space:
mode:
authorThanosApollo <[email protected]>2022-10-01 08:37:56 +0300
committerThanosApollo <[email protected]>2022-10-01 08:37:56 +0300
commitaeb7f1457eb5fa0591f2f1020d83a616d9b1fcb6 (patch)
treeb5b7fd4ee1bd336d82348ff0a799f1e0c8847fdb /.local/share/Anki2/addons21/anki_reworked/utils/modules.py
parenta4a7c05aaa05c267ce304697daddde6637fbd8a9 (diff)
Remove anki add ons
Diffstat (limited to '.local/share/Anki2/addons21/anki_reworked/utils/modules.py')
-rw-r--r--.local/share/Anki2/addons21/anki_reworked/utils/modules.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/.local/share/Anki2/addons21/anki_reworked/utils/modules.py b/.local/share/Anki2/addons21/anki_reworked/utils/modules.py
deleted file mode 100644
index fc55a12..0000000
--- a/.local/share/Anki2/addons21/anki_reworked/utils/modules.py
+++ /dev/null
@@ -1,18 +0,0 @@
-def module_exists(module_name):
- try:
- __import__(module_name)
- except ImportError:
- return False
- else:
- return True
-
-def module_has_attribute(module_name, attribute):
- if module_exists(module_name):
- return hasattr(__import__(module_name), attribute)
- return False
-
-def attribute_exists(object, attribute):
- return attribute in object.__dict__
-
-def context_name_includes(context, classname):
- return classname in str(context.__class__) \ No newline at end of file