This commit is contained in:
Shunsuke Shibayama 2023-01-15 23:43:42 +09:00
parent a70b62695e
commit 6a183346ea
2 changed files with 7 additions and 4 deletions

View file

@ -306,9 +306,14 @@ const KW_ITERABLE: &str = "iterable";
const KW_INDEX: &str = "index";
const KW_KEY: &str = "key";
#[cfg(not(feature = "no_std"))]
pub fn builtins_path() -> PathBuf {
erg_pystd_path().join("builtins.d.er")
}
#[cfg(feature = "no_std")]
pub fn builtins_path() -> PathBuf {
PathBuf::from("lib/pystd/builtins.d.er")
}
impl Context {
fn register_builtin_decl(