Add sys.path_hooks

This commit is contained in:
Aviv Palivoda
2019-06-07 19:32:58 +03:00
parent b0cccf35ad
commit 58d9d9deeb

View File

@@ -243,6 +243,7 @@ settrace() -- set the global debug tracing function
"warnoptions" => ctx.new_list(vec![]),
"platform" => ctx.new_str(platform),
"meta_path" => ctx.new_list(vec![]),
"path_hooks" => ctx.new_list(vec![]),
});
modules.set_item("sys", module.clone(), vm).unwrap();