kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit c8c9a24d99033458650c04c91bcbd2e6a78f4fc6
parent 599835e7fd7e07fe45bdec2ea11a13b251450528
Author: Joris Vink <joris@coders.se>
Date:   Tue,  7 Sep 2021 21:15:17 +0200

Only set initial python deployment if needed.

We should only be setting this if an actual module was specified
on the command-line that will be loaded.

Diffstat:
src/python.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/python.c b/src/python.c @@ -366,8 +366,10 @@ kore_python_init(void) KORE_FILTER_LEN(filter_python)); #endif - if (!kore_configure_setting("deployment", "dev")) - fatal("failed to set initial deployment"); + if (kore_pymodule) { + if (!kore_configure_setting("deployment", "dev")) + fatal("failed to set initial deployment"); + } } void