moved "debug" commands to a single command to reduce clutter
This commit is contained in:
+2
-4
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user