From 164e4725f3ab4adcc0c1527d0ae01965109cfd0d Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Tue, 28 Jul 2020 13:10:09 +0200 Subject: [PATCH] [mod] add dedicated directory to external plugins with gitignore file --- searx/plugins/__init__.py | 4 ++-- searx/static/plugins/external_plugins/.gitignore | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 searx/static/plugins/external_plugins/.gitignore diff --git a/searx/plugins/__init__.py b/searx/plugins/__init__.py index 1abf0202..457183a1 100644 --- a/searx/plugins/__init__.py +++ b/searx/plugins/__init__.py @@ -118,12 +118,12 @@ def sync_resource(base_path, resource_path, name, target_dir, plugin_dir): exit(3) # returning with the web path of the resource - return join('plugins', plugin_dir, file_name) + return join('plugins/external_plugins', plugin_dir, file_name) def prepare_package_resources(pkg, name): plugin_dir = 'plugin_' + name - target_dir = join(static_path, 'plugins', plugin_dir) + target_dir = join(static_path, 'plugins/external_plugins', plugin_dir) try: makedirs(target_dir, exist_ok=True) except: diff --git a/searx/static/plugins/external_plugins/.gitignore b/searx/static/plugins/external_plugins/.gitignore new file mode 100644 index 00000000..94548af5 --- /dev/null +++ b/searx/static/plugins/external_plugins/.gitignore @@ -0,0 +1,3 @@ +* +*/ +!.gitignore