Skip to content

Commit 3793a32

Browse files
authored
Update main.rs
1 parent 8cdce8c commit 3793a32

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

source-code/src/main.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
use pyo3::prelude::*;
2-
use std::fs::read_to_string;
3-
use std::path::Path;
42

53
fn main() -> PyResult<()> {
6-
let script_path = Path::new("terminal/main.py");
7-
let code = read_to_string(script_path).expect("Failed to read main.py");
8-
4+
let code = include_str!("../terminal/main.py");
95
Python::with_gil(|py| {
10-
py.run_bound(&code, None, None)
6+
py.run_bound(code, None, None)
117
})
128
}

0 commit comments

Comments
 (0)