feat(util/lean_path): include ../library in the default LEAN_PATH

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-12-25 16:18:27 -08:00
parent 768f86aa12
commit a9712b91a8

View file

@ -91,8 +91,11 @@ struct init_lean_path {
char * r = getenv("LEAN_PATH");
if (r == nullptr) {
g_lean_path = ".";
std::string exe_path = get_path(get_exe_location());
g_lean_path += g_path_sep;
g_lean_path += get_path(get_exe_location());
g_lean_path += exe_path + g_sep + ".." + g_sep + "library";
g_lean_path += g_path_sep;
g_lean_path += exe_path;
} else {
g_lean_path = r;
}