Skip to content

Commit

Permalink
app_python: init cfg vars framework only in child init
Browse files Browse the repository at this point in the history
- backport of 17a3338
  • Loading branch information
miconda committed Aug 20, 2018
1 parent da08b81 commit 1d74f30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/app_python/app_python_mod.c
Expand Up @@ -26,6 +26,7 @@
#include "../../core/sr_module.h"
#include "../../core/mod_fix.h"
#include "../../core/kemi.h"
#include "../../core/cfg/cfg_struct.h"

#include "python_exec.h"
#include "python_iface.h"
Expand Down Expand Up @@ -175,6 +176,9 @@ static int mod_init(void)
static int child_init(int rank)
{
_apy_process_rank = rank;
if (cfg_child_init()) {
return -1;
}
return apy_init_script(rank);
}

Expand Down

0 comments on commit 1d74f30

Please sign in to comment.