mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
Add frozen _bootstrap_external.py
This commit is contained in:
1 parent
0d9a066712
commit
37b40c55da
2 files changed
+1632
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -16,9 +16,25 @@ const IMPORTLIB_BOOTSTRAP: &'static str = include_str!(concat!(
|
||||
"_bootstrap.py"
|
||||
));
|
||||
|
||||
const IMPORTLIB_BOOTSTRAP_EXTERNAL: &'static str = include_str!(concat!(
|
||||
env!("CARGO_MANIFEST_DIR"),
|
||||
"/",
|
||||
"..",
|
||||
"/",
|
||||
"Lib",
|
||||
"/",
|
||||
"importlib",
|
||||
"/",
|
||||
"_bootstrap_external.py"
|
||||
));
|
||||
|
||||
pub fn get_module_inits() -> HashMap<String, &'static str> {
|
||||
let mut modules = HashMap::new();
|
||||
modules.insert("__hello__".to_string(), HELLO);
|
||||
modules.insert("_frozen_importlib".to_string(), IMPORTLIB_BOOTSTRAP);
|
||||
modules.insert(
|
||||
"_frozen_importlib_external".to_string(),
|
||||
IMPORTLIB_BOOTSTRAP_EXTERNAL,
|
||||
);
|
||||
modules
|
||||
}
|
||||
Reference in new issue
Block a user