From bdd60c63d8ee21214a98d7dcbec1aa97f7382c43 Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Tue, 23 Sep 2025 15:14:52 -0400 Subject: [PATCH] devex: add '{repo}' variable for extension paths Previously '{source}' was added but this is a bit difficult to work with since it's the path from the source file, which is usually the 'src/' directory under the repository. This won't be obvious anyone who doesn't already know this. '{repo}' just points to the path of the repository itself. --- src/backend/src/boot/RuntimeEnvironment.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/src/boot/RuntimeEnvironment.js b/src/backend/src/boot/RuntimeEnvironment.js index 49d62ba67..102e56dbf 100644 --- a/src/backend/src/boot/RuntimeEnvironment.js +++ b/src/backend/src/boot/RuntimeEnvironment.js @@ -222,6 +222,7 @@ class RuntimeEnvironment extends AdvancedBase { const environment = {}; environment.source = this.modules.path_.dirname( this.entry_path || require.main.filename); + environment.repo = this.modules.path_.dirname(environment.source); const config_path_entry = this.get_first_suitable_path_( { pathFor: 'configuration' },