mirror of
https://github.com/dnlbauer/WHAM.git
synced 2026-09-10 14:15:31 +00:00
13 lines
306 B
Rust
13 lines
306 B
Rust
use std::process::Command;
|
|
use std::env;
|
|
|
|
pub fn get_command() -> Command {
|
|
let exe = env::current_exe().unwrap();
|
|
let path = exe.to_str().unwrap();
|
|
let cmd = if path.contains("release") {
|
|
"./target/release/wham"
|
|
} else {
|
|
"./target/debug/wham"
|
|
};
|
|
Command::new(cmd)
|
|
} |