diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2021-12-01 19:39:04 +0100 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2021-12-01 19:39:04 +0100 |
| commit | 49cb05c53178a48e37da82d5a6ff90b027ce644d (patch) | |
| tree | a0c5dad638b14fccf59f1524b09717becd903ba7 /src | |
| parent | c6895267c1c645e54c18a66e0f27477f3aba98d1 (diff) | |
add vendor automatically
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); |