mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
put system module path in front of user module path
This commit is contained in:
parent
6c522cc04b
commit
89a77540b4
1 changed files with 3 additions and 3 deletions
6
eval.c
6
eval.c
|
@ -507,12 +507,12 @@ void sexp_init_eval_context_globals (sexp ctx) {
|
|||
sexp_init_eval_context_bytecodes(ctx);
|
||||
#endif
|
||||
sexp_global(ctx, SEXP_G_MODULE_PATH) = SEXP_NULL;
|
||||
no_sys_path = getenv(SEXP_NO_SYSTEM_PATH_VAR);
|
||||
if (!no_sys_path || strcmp(no_sys_path, "0")==0)
|
||||
sexp_add_path(ctx, sexp_default_module_path);
|
||||
user_path = getenv(SEXP_MODULE_PATH_VAR);
|
||||
if (!user_path) user_path = sexp_default_user_module_path;
|
||||
sexp_add_path(ctx, user_path);
|
||||
no_sys_path = getenv(SEXP_NO_SYSTEM_PATH_VAR);
|
||||
if (!no_sys_path || strcmp(no_sys_path, "0")==0)
|
||||
sexp_add_path(ctx, sexp_default_module_path);
|
||||
#if SEXP_USE_GREEN_THREADS
|
||||
sexp_global(ctx, SEXP_G_IO_BLOCK_ERROR)
|
||||
= sexp_user_exception(ctx, SEXP_FALSE, "I/O would block", SEXP_NULL);
|
||||
|
|
Loading…
Add table
Reference in a new issue