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:
parent
768f86aa12
commit
a9712b91a8
1 changed files with 4 additions and 1 deletions
|
@ -91,8 +91,11 @@ struct init_lean_path {
|
||||||
char * r = getenv("LEAN_PATH");
|
char * r = getenv("LEAN_PATH");
|
||||||
if (r == nullptr) {
|
if (r == nullptr) {
|
||||||
g_lean_path = ".";
|
g_lean_path = ".";
|
||||||
|
std::string exe_path = get_path(get_exe_location());
|
||||||
g_lean_path += g_path_sep;
|
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 {
|
} else {
|
||||||
g_lean_path = r;
|
g_lean_path = r;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue