Set the value of the interpreter's load-path
set_slang_load_path (String_Type path)
This function may be used to set the value of the
delimiter-separated search path used by the evalfile and
autoload functions for locating files.
public define prepend_to_slang_load_path (p)
{
variable s = stat_file (p);
if (s == NULL) return;
if (0 == stat_is ("dir", s.st_mode))
return;
variable d = path_get_delimiter ();
set_slang_load_path (strcat (p, d, get_slang_load_path ()));
}
Some applications may not support the built-in load-path searching
facility provided by the underlying library.
- slangrtl
-
__get_reference,
append_to_slang_load_path,
autoload,
byte_compile_file,
eval,
evalfile,
get_slang_load_path,
import,
is_defined,
path_get_delimiter,
prepend_to_slang_load_path,
require
|