Skip to content
Snippets Groups Projects
Commit 97350b55 authored by alexey.stratulat's avatar alexey.stratulat
Browse files

[*] When receiving the by default path to plugins, the cellframe is replaced...

[*] When receiving the by default path to plugins, the cellframe is replaced with the result of calling the dap_get _appname function.
parent 40110af2
No related branches found
No related tags found
1 merge request!4Features 2954
This commit is part of merge request !4. Comments created here will be created in the context of that merge request.
...@@ -5,8 +5,9 @@ ...@@ -5,8 +5,9 @@
int dap_chain_plugins_init(dap_config_t *a_config){ int dap_chain_plugins_init(dap_config_t *a_config){
if(dap_config_get_item_bool_default(a_config, "plugins", "py_load", false)){ if(dap_config_get_item_bool_default(a_config, "plugins", "py_load", false)){
const char *l_defaule_path_plugins = dap_strjoin(NULL, "/opt/", dap_get_appname(), "/var/plugins/", NULL);
const char *l_plugins_root_path = dap_config_get_item_str_default(a_config, "plugins", "py_path", const char *l_plugins_root_path = dap_config_get_item_str_default(a_config, "plugins", "py_path",
"/opt/cellframe-node/var/plugins/"); l_defaule_path_plugins);
s_plugins_root_path = dap_strjoin(NULL, l_plugins_root_path, "/", NULL); s_plugins_root_path = dap_strjoin(NULL, l_plugins_root_path, "/", NULL);
log_it(L_INFO, "Start initialize python plugins. Path plugins %s", s_plugins_root_path); log_it(L_INFO, "Start initialize python plugins. Path plugins %s", s_plugins_root_path);
if (!dap_dir_test(s_plugins_root_path)){ if (!dap_dir_test(s_plugins_root_path)){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment