Browse Source

app_python3: init cfg vars framework in child init

Daniel-Constantin Mierla 7 years ago
parent
commit
1af0bd744b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/modules/app_python3/app_python3_mod.c

+ 4 - 0
src/modules/app_python3/app_python3_mod.c

@@ -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"
@@ -179,6 +180,9 @@ static int child_init(int rank)
 	}
 	_apy_process_rank = rank;
 	PyOS_AfterFork();
+	if (cfg_child_init()) {
+		return -1;
+	}
 	return apy_init_script(rank);
 }