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.
This commit is contained in:
Joris Vink 2021-09-07 21:15:17 +02:00
parent 599835e7fd
commit c8c9a24d99

View File

@ -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