Commit 5fbd1604d5e9b7feb2f35ab8859c113a3cf0ab15

Thomas de Grivel 2025-04-09T20:53:17

add path to env

diff --git a/libkc3/env.c b/libkc3/env.c
index 0bce7f3..4ed080e 100644
--- a/libkc3/env.c
+++ b/libkc3/env.c
@@ -1106,12 +1106,13 @@ s_env * env_init (s_env *env, int *argc, char ***argv)
     (NULL, "./", list_new_str_1
      (NULL, "./share/kc3/", list_new_str_1
       (NULL, "../", list_new_str_1
-       (NULL, "../Resources/", list_new_str_1
-        (NULL, "../../", list_new_str_1
-         (NULL, "../../../", list_new_str_1
-          (NULL, "../../../../", list_new_str_1
-           (NULL, "../../../../../", list_new_str_1
-            (NULL, "../../../../../../", NULL)))))))));
+       (NULL, "../share/kc3/", list_new_str_1
+        (NULL, "../Resources/", list_new_str_1
+         (NULL, "../../", list_new_str_1
+          (NULL, "../../../", list_new_str_1
+           (NULL, "../../../../", list_new_str_1
+            (NULL, "../../../../../", list_new_str_1
+             (NULL, "../../../../../../", NULL))))))))));
   str_init_1(&path, NULL, "lib/kc3/0.1/");
   if (! (env->module_path = alloc(sizeof(s_str))))
     return NULL;