FINALLY MADE WEBSOCKETS WORK AAAAAAAAAAAAAAAAA

This commit is contained in:
2025-02-08 16:16:55 +01:00
parent 1c7170bb81
commit bf2e1e347f
6 changed files with 28 additions and 27 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
use crate::rs_println;
use crate::{rs_println, errln};
use std::fs;
use std::ffi::CString;
@@ -25,13 +25,13 @@ pub fn start(args: String) -> PyResult<()> {
let empty = CString::new("").unwrap();
let app: Py<PyAny> = PyModule::from_code(py, &app_path, &empty, &empty)?
.getattr("run")?
.getattr("main")?
.into();
return app.call0(py);
});
if from_python.is_err() { println!("py: {:?}", from_python); }
if from_python.is_err() { errln!("pyO3: {:?}", from_python); }
return Ok(());
}