mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 18:58:30 +00:00
Bug fix
This commit is contained in:
parent
a70b62695e
commit
6a183346ea
2 changed files with 7 additions and 4 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue