fix: default LEAN_PATH for installed Lean

This commit is contained in:
Sebastian Ullrich 2020-01-25 15:58:06 +01:00
parent 5c0fa84af5
commit 88fe0de284

View file

@ -51,7 +51,7 @@ if libDirExists then do
path ← realPathNormalized libDir;
pure $ HashMap.empty.insert "Init" path
else do
let installedLibDir := appDir ++ pathSep ++ ".." ++ pathSep ++ "lib" ++ pathSep ++ "lean" ++ pathSep ++ "library" ++ pathSep ++ "Init";
let installedLibDir := appDir ++ pathSep ++ ".." ++ pathSep ++ "lib" ++ pathSep ++ "lean" ++ pathSep ++ "Init";
installedLibDirExists ← IO.isDir installedLibDir;
if installedLibDirExists then do
path ← realPathNormalized installedLibDir;