on master help sign in
[mod] add dedicated directory to external plugins with gitignore file
commit164e4725f3ab4adcc0c1527d0ae01965109cfd0d authorAdam Tauber <asciimoo@gmail.com> dateTue 28 Jul 2020, 13:10 (6 years ago) parent3f60bb4
2 files changed+5−2
searx/plugins/__init__.py+2−2 searx/static/plugins/external_plugins/.gitignore+3
searx/plugins/__init__.py+2−2
@@ -118,12 +118,12 @@ def sync_resource(base_path, resource_path, name, target_dir, plugin_dir):
118118 exit(3)
119119
120120 # returning with the web path of the resource
121− return join('plugins', plugin_dir, file_name)
121+ return join('plugins/external_plugins', plugin_dir, file_name)
122122
123123
124124def prepare_package_resources(pkg, name):
125125 plugin_dir = 'plugin_' + name
126− target_dir = join(static_path, 'plugins', plugin_dir)
126+ target_dir = join(static_path, 'plugins/external_plugins', plugin_dir)
127127 try:
128128 makedirs(target_dir, exist_ok=True)
129129 except:
searx/static/plugins/external_plugins/.gitignorenew file+3
@@ -0,0 +1,3 @@
1+*
2+*/
3+!.gitignore