We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0ea3ba commit 284ba4fCopy full SHA for 284ba4f
vm/src/import.rs
@@ -80,7 +80,10 @@ pub fn import_file(
80
81
let attrs = vm.ctx.new_dict();
82
attrs.set_item("__name__", vm.new_str(module_name.to_string()), vm)?;
83
- attrs.set_item("__file__", vm.new_str(file_path), vm)?;
+ if file_path != "frozen".to_string() {
84
+ // TODO: Should be removed after precompiling frozen modules.
85
+ attrs.set_item("__file__", vm.new_str(file_path), vm)?;
86
+ }
87
let module = vm.ctx.new_module(module_name, attrs.clone());
88
89
// Store module in cache to prevent infinite loop with mutual importing libs:
0 commit comments