kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit bafb99445f23af7e9e564ebab4b2dca069789ae0
parent 65666942e69faba70900269a4cc6519959e88443
Author: Joris Vink <joris@coders.se>
Date:   Mon,  9 Apr 2018 20:35:11 +0200

pyko: change to module directory before starting.

Diffstat:
pyko/src/pyko.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/pyko/src/pyko.c b/pyko/src/pyko.c @@ -49,5 +49,9 @@ kore_parent_configure(int argc, char **argv) kore_module_load(argv[0], NULL, KORE_MODULE_PYTHON); /* kore_parse_config_file() will call fclose(). */ + + if (chdir(argv[0]) == -1) + fatal("chdir(%s): %s", argv[0], errno_s); + kore_parse_config_file(fp); }