Roxen.git / server / base_server / roxenloader.pike

version» Context lines:

Roxen.git/server/base_server/roxenloader.pike:1340:   }      array(string) default_roxen_font_path =    ({ "nfonts/",   #ifdef __NT__    combine_path(replace(getenv("SystemRoot"), "\\", "/"), "fonts/")   #else    @((getenv("RX_FONTPATH") || "")/"," - ({""}))   #endif    }); - array(string) default_roxen_module_path = ({ "modules/" }); + array(string) package_module_path = ({ });      array(string) package_directories = ({ });      void add_package(string package_dir)   {    string ver = r_read_bytes(combine_path(package_dir, "VERSION"));    if (ver && (ver != "")) {    report_debug("Adding package %s (Version %s).\n", package_dir, ver - "\n");    } else {    report_debug("Adding package %s.\n", package_dir);
Roxen.git/server/base_server/roxenloader.pike:1371: Inside #if defined(RUN_SELF_TEST)
  #ifdef RUN_SELF_TEST    sub_dir = combine_path(real_pkg_dir, "test/pike-modules");    if (Stdio.is_dir(sub_dir)) {    master()->add_module_path(sub_dir);    }    if (Stdio.is_dir(sub_dir = combine_path(real_pkg_dir, "test/include/"))) {    master()->add_include_path(sub_dir);    }   #endif    -  default_roxen_module_path += ({ combine_path(package_dir, "modules/") }); +  package_module_path += ({ combine_path(package_dir, "modules/") });    if (r_is_dir(sub_dir = combine_path(package_dir, "roxen-modules/"))) { -  default_roxen_module_path += ({ sub_dir }); +  package_module_path += ({ sub_dir });    }    if (r_is_dir(sub_dir = combine_path(package_dir, "fonts/"))) {    default_roxen_font_path += ({ sub_dir });    }   }         //! @appears lopen   object|void lopen(string filename, string mode, int|void perm)   {