fix: add Std to builtin path
This commit is contained in:
parent
dea832b63b
commit
1eaae47bab
2 changed files with 11 additions and 2 deletions
|
|
@ -49,8 +49,11 @@ appDir ← IO.appDir;
|
|||
let installedLibDir := appDir ++ pathSep ++ ".." ++ pathSep ++ "lib" ++ pathSep ++ "lean" ++ pathSep ++ "Init";
|
||||
installedLibDirExists ← IO.isDir installedLibDir;
|
||||
if installedLibDirExists then do
|
||||
path ← realPathNormalized installedLibDir;
|
||||
pure $ HashMap.empty.insert "Init" path
|
||||
initPath ← realPathNormalized installedLibDir;
|
||||
let map := HashMap.empty.insert "Init" initPath;
|
||||
let stdDir := appDir ++ pathSep ++ ".." ++ pathSep ++ "lib" ++ pathSep ++ "lean" ++ pathSep ++ "Std";
|
||||
stdPath ← realPathNormalized stdDir;
|
||||
pure $ map.insert "Std" stdPath
|
||||
else
|
||||
pure ∅
|
||||
|
||||
|
|
|
|||
6
src/Std.lean
Normal file
6
src/Std.lean
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
/-
|
||||
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Authors: Leonardo de Moura
|
||||
-/
|
||||
import Std.Data
|
||||
Loading…
Add table
Reference in a new issue