Add frozen _bootstrap_external.py

This commit is contained in:
Aviv Palivoda committed 2019-06-10 19:18:32 +03:00
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
View File
@@ -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
}