diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2021-12-01 19:57:31 +0100 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2021-12-01 19:57:31 +0100 |
| commit | bd280edf0ab146e612ce7691b22c6a07c7c0d459 (patch) | |
| tree | e02fc5d59c18ccee5782efe9ba5c4111094ebf5d /src | |
| parent | 49cb05c53178a48e37da82d5a6ff90b027ce644d (diff) | |
change env name to ODIN_ROOT
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/requests.odin | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/requests.odin b/src/server/requests.odin index 3dfb5a8..f80d7ea 100644 --- a/src/server/requests.odin +++ b/src/server/requests.odin @@ -462,19 +462,19 @@ request_initialize :: proc (task: ^common.Task) { } when ODIN_OS == "windows" { - odin_core_env := os.get_env("ODIN_CORE_PATH", context.temp_allocator); + odin_core_env := os.get_env("ODIN_ROOT", context.temp_allocator); } else { - odin_core_env, _ := os.getenv("ODIN_CORE_PATH"); + odin_core_env, _ := os.getenv("ODIN_ROOT"); } if "core" not_in config.collections && odin_core_env != "" { forward_path, _ := filepath.to_slash(odin_core_env, context.temp_allocator); - config.collections["core"] = strings.clone(forward_path); + config.collections["core"] = path.join(elems = {forward_path, "core"}, allocator = context.allocator); } 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); + config.collections["vendor"] = path.join(elems = {forward_path, "vendor"}, allocator = context.allocator); } common.pool_init(&pool, config.thread_count); |