(&self, new: &'static PyStrInterned)
| 422 | } |
| 423 | |
| 424 | pub fn set_source_path(&self, new: &'static PyStrInterned) { |
| 425 | self.source_path.store( |
| 426 | new as *const PyStrInterned as *mut PyStrInterned, |
| 427 | Ordering::Relaxed, |
| 428 | ); |
| 429 | } |
| 430 | pub fn from_pyc_path(path: &std::path::Path, vm: &VirtualMachine) -> PyResult<PyRef<Self>> { |
| 431 | let name = match path.file_stem() { |
| 432 | Some(stem) => stem.display().to_string(), |
no test coverage detected