migrated to asyncPRAW (i fucking hate it but it made reddit shut the fuck up)
This commit is contained in:
+2
-4
@@ -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); }
|
||||
|
||||
Reference in New Issue
Block a user