()
| 13 | use std::process::ExitCode; |
| 14 | |
| 15 | fn main() -> ExitCode { |
| 16 | match run() { |
| 17 | Ok(code) => ExitCode::from(code as u8), |
| 18 | Err(e) => { |
| 19 | eprintln!("venvlauncher error: {}", e); |
| 20 | ExitCode::from(1) |
| 21 | } |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | fn run() -> Result<u32, Box<dyn core::error::Error>> { |
| 26 | // 1. Get own executable path |