aboutsummaryrefslogtreecommitdiff
path: root/src/modules.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-12-21 15:57:21 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-12-21 15:57:21 -0500
commit13c430fde1388703aa002fdb203548801082d4e3 (patch)
tree236718203fa84bcf78b755bf8ec3b69a1da716ad /src/modules.c
parent86a08a38a8a60b6a0de0da62a5d3fa843f6db71f (diff)
parent434ffd71c9a7eebd46ec0cba1d97b0827b874901 (diff)
Merge branch 'dev'
Diffstat (limited to 'src/modules.c')
-rw-r--r--src/modules.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules.c b/src/modules.c
index 36952ec8..056cd5cc 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -102,7 +102,7 @@ module_info_t get_used_module_info(ast_t *use) {
const char *name = Match(use, Use)->path;
module_info_t *info = new (module_info_t, .name = name);
Path_t tomo_default_modules =
- Path$from_text(Texts(Text$from_str(TOMO_PATH), "/lib/tomo@" TOMO_VERSION "/modules.ini"));
+ Path$from_text(Texts(Text$from_str(TOMO_PATH), "/lib/tomo@", TOMO_VERSION, "/modules.ini"));
read_modules_ini(tomo_default_modules, info);
read_modules_ini(Path$sibling(Path$from_str(use->file->filename), Text("modules.ini")), info);
read_modules_ini(Path$with_extension(Path$from_str(use->file->filename), Text(":modules.ini"), false), info);
@@ -111,8 +111,8 @@ module_info_t get_used_module_info(ast_t *use) {
}
bool try_install_module(module_info_t mod, bool ask_confirmation) {
- Path_t dest = Path$from_text(Texts(Text$from_str(TOMO_PATH), "/lib/tomo@" TOMO_VERSION "/", Text$from_str(mod.name),
- "@", Text$from_str(mod.version)));
+ Path_t dest = Path$from_text(Texts(Text$from_str(TOMO_PATH), "/lib/tomo@", TOMO_VERSION, "/",
+ Text$from_str(mod.name), "@", Text$from_str(mod.version)));
if (Path$exists(dest)) return true;
print("No such path: ", dest);