From b1a3f2b0f83afa0a54990503b3c639666dc36885 Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Sun, 2 Apr 2023 18:54:36 +0200 Subject: [PATCH] fix single binary builds using PYTHON flavor. --- src/python.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/python.c b/src/python.c index ed00c3f..d81448d 100644 --- a/src/python.c +++ b/src/python.c @@ -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);