Roxen.git / server / base_server / roxenloader.pike

version» Context lines:

Roxen.git/server/base_server/roxenloader.pike:1419:   {    if (filename[0] != '/') {    foreach(package_directories, string dir) {    string path = combine_path(roxen_path(dir), filename);    if (file_stat(path)) return path;    }    }    return file_stat(filename) && filename;   }    + array(string) lget_dir(string path) + { +  if (path[0] != '/') { +  array(string) res = UNDEFINED; +  foreach(package_directories, string dir) { +  array(string) paths = +  get_dir(combine_path(roxen_path(dir), path)); +  if (paths) res += paths; +  } +  if (res) return Array.uniq(res); +  } +  return get_dir(path); + } +    // Make a $PATH-style string   string make_path(string ... from)   {    return map(from, lambda(string a, string b) {    return (a[0]=='/')?combine_path("/",a):combine_path(b,a);    //return combine_path(b,a);    }, server_dir)*":";   }      //! @appears isodate
Roxen.git/server/base_server/roxenloader.pike:3051:    add_constant("roxen_path", roxen_path);    add_constant("roxen_version", roxen_version);    add_constant("roxen_dist_version", dist_version);    add_constant("roxen_dist_os", dist_os);    add_constant("roxen_release", release || roxen_release);    add_constant("roxen_is_cms", roxen_is_cms);    add_constant("roxen_product_name", roxen_product_name);    add_constant("lopen", lopen);    add_constant("lfile_stat", lfile_stat);    add_constant("lfile_path", lfile_path); +  add_constant("lget_dir", lget_dir);    add_constant("report_notice", report_notice);    add_constant("report_debug", report_debug);    add_constant("report_warning",report_warning);    add_constant("report_error", report_error);    add_constant("report_fatal", report_fatal);    add_constant("report_notice_for", report_notice_for);    add_constant("report_warning_for", report_warning_for);    add_constant("report_error_for", report_error_for);    add_constant("report_fatal_for", report_fatal_for);    add_constant("report_warning_sparsely", report_warning_sparsely);