summaryrefslogtreecommitdiff
path: root/searx/webutils.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-06-01 16:13:04 +0200
committerGitHub <noreply@github.com>2021-06-01 16:13:04 +0200
commite3f4a7731180b87ba2b3acbe4e1ea8070624001f (patch)
tree2f8f730a134f5d977faed891637602d1b16b3107 /searx/webutils.py
parente0af67f0afbef6887a9dfb0546cd150b9f9f0c1a (diff)
parent495d86b520c71e36c6f924a3a2421e499d159c2b (diff)
Merge pull request #110 from searxng/mod-default-settings
[mod] move all default settings into searx.settings_defaults
Diffstat (limited to 'searx/webutils.py')
-rw-r--r--searx/webutils.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/searx/webutils.py b/searx/webutils.py
index 2464a097f..c27324908 100644
--- a/searx/webutils.py
+++ b/searx/webutils.py
@@ -47,14 +47,6 @@ class UnicodeWriter:
self.writerow(row)
-def get_resources_directory(searx_directory, subdirectory, resources_directory):
- if not resources_directory:
- resources_directory = os.path.join(searx_directory, subdirectory)
- if not os.path.isdir(resources_directory):
- raise Exception(resources_directory + " is not a directory")
- return resources_directory
-
-
def get_themes(templates_path):
"""Returns available themes list."""
themes = os.listdir(templates_path)