once again, too much to remember

This commit is contained in:
2025-02-05 20:39:43 +01:00
parent 4b6a90f0cb
commit bf56e8baa0
6 changed files with 103 additions and 21 deletions
+3 -1
View File
@@ -2,9 +2,10 @@ use crate::rs_println;
use std::fs;
use std::ffi::CString;
use std::env;
use pyo3::prelude::*;
use pyo3::types::PyList;
use std::env;
pub fn start() -> PyResult<()> {
@@ -16,6 +17,7 @@ pub fn start() -> PyResult<()> {
let app_path = CString::new(code).unwrap();
pyo3::prepare_freethreaded_python();
let from_python = Python::with_gil(|py| -> PyResult<Py<PyAny>> {
let syspath = py
.import("sys")?