migrated to asyncPRAW (i fucking hate it but it made reddit shut the fuck up)

This commit is contained in:
2025-02-12 17:43:35 +01:00
parent 67052b1511
commit 069d615272
14 changed files with 121 additions and 130 deletions
+2 -4
View File
@@ -24,11 +24,9 @@ pub fn start(args: String) -> PyResult<()> {
syspath.insert(0, path)?;
let empty = CString::new("").unwrap();
let app: Py<PyAny> = PyModule::from_code(py, &app_path, &empty, &empty)?
.getattr("main")?
.into();
let app: Py<PyAny> = PyModule::from_code(py, &app_path, &empty, &empty)?.into();
return app.call0(py);
return Ok(app);
});
if from_python.is_err() { errln!("pyO3: {:?}", from_python); }