moved "debug" commands to a single command to reduce clutter

This commit is contained in:
2026-02-23 19:42:17 +01:00
parent 25c6577997
commit 7eb830cf25
11 changed files with 72 additions and 70 deletions
+2 -4
View File
@@ -36,10 +36,8 @@ pub async fn start(args: Args) -> PyResult<()> {
let mut traceback: String = String::new();
let mut is_error = false;
pyo3::prepare_freethreaded_python();
let _ = Python::with_gil(|py| -> Result<(), PyErr> {
let syspath = py.import("sys")?.getattr("path")?.downcast_into::<PyList>()?;
let _ = Python::attach(|py| -> Result<(), PyErr> {
let syspath = py.import("sys")?.getattr("path")?.cast_into::<PyList>()?;
syspath.insert(0, path)?;
let empty = CString::new("").unwrap();