From 49cb05c53178a48e37da82d5a6ff90b027ce644d Mon Sep 17 00:00:00 2001 From: Daniel Gavin Date: Wed, 1 Dec 2021 19:39:04 +0100 Subject: add vendor automatically --- src/server/requests.odin | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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); -- cgit v1.2.3