mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 12:10:11 +01:00
[mod] add dedicated directory to external plugins with gitignore file
This commit is contained in:
parent
3f60bb470a
commit
164e4725f3
@ -118,12 +118,12 @@ def sync_resource(base_path, resource_path, name, target_dir, plugin_dir):
|
|||||||
exit(3)
|
exit(3)
|
||||||
|
|
||||||
# returning with the web path of the resource
|
# 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):
|
def prepare_package_resources(pkg, name):
|
||||||
plugin_dir = 'plugin_' + name
|
plugin_dir = 'plugin_' + name
|
||||||
target_dir = join(static_path, 'plugins', plugin_dir)
|
target_dir = join(static_path, 'plugins/external_plugins', plugin_dir)
|
||||||
try:
|
try:
|
||||||
makedirs(target_dir, exist_ok=True)
|
makedirs(target_dir, exist_ok=True)
|
||||||
except:
|
except:
|
||||||
|
3
searx/static/plugins/external_plugins/.gitignore
vendored
Normal file
3
searx/static/plugins/external_plugins/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
*
|
||||||
|
*/
|
||||||
|
!.gitignore
|
Loading…
Reference in New Issue
Block a user