(&self, obj: PyObjectRef)
| 2194 | } |
| 2195 | |
| 2196 | pub fn insert_sys_path(&self, obj: PyObjectRef) -> PyResult<()> { |
| 2197 | let sys_path = self.sys_module.get_attr("path", self).unwrap(); |
| 2198 | self.call_method(&sys_path, "insert", (0, obj))?; |
| 2199 | Ok(()) |
| 2200 | } |
| 2201 | |
| 2202 | pub fn run_module(&self, module: &str) -> PyResult<()> { |
| 2203 | let runpy = self.import("runpy", 0)?; |
no test coverage detected