pub fn run_path_with_cstr<T, F>(path: &Path, f: F) -> Result<T>where
    F: FnOnce(&CStr) -> Result<T>,