()
| 8 | const CLI_PKG_NAME: &str = "aiscript"; |
| 9 | |
| 10 | fn test_command() -> Command { |
| 11 | // Create full path to binary |
| 12 | let mut path = env::current_exe() |
| 13 | .unwrap() |
| 14 | .parent() |
| 15 | .unwrap() |
| 16 | .parent() |
| 17 | .unwrap() |
| 18 | .to_owned(); |
| 19 | // path.push(env!("CARGO_PKG_NAME")); |
| 20 | path.push(CLI_PKG_NAME); |
| 21 | path.set_extension(env::consts::EXE_EXTENSION); |
| 22 | Command::new(path.into_os_string()) |
| 23 | } |
| 24 | |
| 25 | struct RuntimeError { |
| 26 | line_prefix: String, |