forked from RustPython/RustPython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfrozen.rs
More file actions
19 lines (18 loc) · 688 Bytes
/
frozen.rs
File metadata and controls
19 lines (18 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use crate::bytecode::CodeObject;
use std::collections::HashMap;
pub fn get_module_inits() -> HashMap<String, CodeObject> {
hashmap! {
"__hello__".into() => py_compile_bytecode!(
source = "initialized = True; print(\"Hello world!\")\n",
module_name = "__hello__",
),
"_frozen_importlib".into() => py_compile_bytecode!(
file = "../Lib/importlib/_bootstrap.py",
module_name = "_frozen_importlib",
),
"_frozen_importlib_external".into() => py_compile_bytecode!(
file = "../Lib/importlib/_bootstrap_external.py",
module_name = "_frozen_importlib_external",
),
}
}