diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/requests.odin | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/requests.odin b/src/server/requests.odin index 95c1e56..3dfb5a8 100644 --- a/src/server/requests.odin +++ b/src/server/requests.odin @@ -472,6 +472,11 @@ request_initialize :: proc (task: ^common.Task) { config.collections["core"] = strings.clone(forward_path); } + if "vendor" not_in config.collections && odin_core_env != "" { + forward_path, _ := filepath.to_slash(odin_core_env, context.temp_allocator); + config.collections["vendor"] = path.join(elems = {forward_path, "../vendor"}, allocator = context.allocator); + } + common.pool_init(&pool, config.thread_count); common.pool_start(&pool); |