on master help sign in
[mod] add dedicated directory to external plugins with gitignore file
164e472Adam Tauber
searx/plugins/__init__.py+2−2
@@ -118,12 +118,12 @@ def sync_resource(base_path, resource_path, name, target_dir, plugin_dir):
118 exit(3)
118 exit(3)
119
119
120 # returning with the web path of the resource
120 # 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)
122
122
123
123
124def prepare_package_resources(pkg, name):
124def prepare_package_resources(pkg, name):
125 plugin_dir = 'plugin_' + name
125 plugin_dir = 'plugin_' + name
126− target_dir = join(static_path, 'plugins', plugin_dir)
126+ target_dir = join(static_path, 'plugins/external_plugins', plugin_dir)
127 try:
127 try:
128 makedirs(target_dir, exist_ok=True)
128 makedirs(target_dir, exist_ok=True)
129 except:
129 except:
searx/static/plugins/external_plugins/.gitignorenew file+3
@@ -0,0 +1,3 @@
1+*
2+*/
3+!.gitignore