made bot usable again

This commit is contained in:
2026-02-24 16:25:43 +01:00
parent 7eb830cf25
commit 7acfc33b74
3 changed files with 10 additions and 3 deletions
+2
View File
@@ -36,6 +36,8 @@ pub async fn start(args: Args) -> PyResult<()> {
let mut traceback: String = String::new();
let mut is_error = false;
Python::initialize();
let _ = Python::attach(|py| -> Result<(), PyErr> {
let syspath = py.import("sys")?.getattr("path")?.cast_into::<PyList>()?;
syspath.insert(0, path)?;