aboutsummaryrefslogtreecommitdiff
path: root/src/typecheck.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-01 15:11:52 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-01 15:11:52 -0400
commite01383da05d5cf03d080854ac048df37df4d1b9a (patch)
treebcbcde2dca685a6de30c0b05ef1ab9ffeadfaed5 /src/typecheck.c
parentee020c72d92c3807fa4afcd1e170d3df81688b97 (diff)
Change module install directory to PREFIX/lib/tomo_vX.Y/*
Diffstat (limited to 'src/typecheck.c')
-rw-r--r--src/typecheck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/typecheck.c b/src/typecheck.c
index 07970bd9..adb267df 100644
--- a/src/typecheck.c
+++ b/src/typecheck.c
@@ -186,8 +186,8 @@ static env_t *load_module(env_t *env, ast_t *module_ast) {
module_info_t mod = get_module_info(module_ast);
glob_t tm_files;
const char *folder = mod.version ? String(mod.name, "_", mod.version) : mod.name;
- if (glob(String(TOMO_PREFIX "/share/tomo_" TOMO_VERSION "/installed/", folder, "/[!._0-9]*.tm"), GLOB_TILDE,
- NULL, &tm_files)
+ if (glob(String(TOMO_PREFIX "/lib/tomo_" TOMO_VERSION "/", folder, "/[!._0-9]*.tm"), GLOB_TILDE, NULL,
+ &tm_files)
!= 0) {
if (!try_install_module(mod)) code_err(module_ast, "Couldn't find or install library: ", folder);
}