Skip to content

Commit 6b9bbf3

Browse files
committed
Change TODO
1 parent 75c2e4a commit 6b9bbf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/import.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ pub fn import_codeobj(vm: &VirtualMachine, module_name: &str, code_obj: CodeObje
9191
attrs.set_item("__name__", vm.new_str(module_name.to_string()), vm)?;
9292
let file_path = &code_obj.source_path;
9393
if !file_path.starts_with("frozen") {
94-
// TODO: Should be removed after precompiling frozen modules.
94+
// TODO: Should be less hacky, not depend on source_path
9595
attrs.set_item("__file__", vm.new_str(file_path.to_owned()), vm)?;
9696
}
9797
let module = vm.ctx.new_module(module_name, attrs.clone());

0 commit comments

Comments
 (0)