fix single binary builds using PYTHON flavor.

This commit is contained in:
Joris Vink 2023-04-02 18:54:36 +02:00
parent 5dd2e922b3
commit b1a3f2b0f8
1 changed files with 2 additions and 0 deletions

View File

@ -1302,7 +1302,9 @@ python_runtime_resolve(const char *module, const struct stat *st)
kore_module_load(module, NULL, KORE_MODULE_PYTHON);
}
#if !defined(KORE_SINGLE_BINARY)
kore_pymodule = module;
#endif
kore_hooks_set(KORE_PYTHON_CONFIG_HOOK,
KORE_PYTHON_TEARDOWN_HOOK, KORE_PYTHON_DAEMONIZED_HOOK);