use env_logger; use std::fs::create_dir_all; use std::path::{Path, PathBuf}; pub fn setup() { let env = env_logger::Env::default().default_filter_or("debug"); env_logger::from_env(env).init(); create_dir_all(Path::new("./examples/output")).unwrap(); } pub fn get_asset_path(s: &str) -> PathBuf { Path::new("./examples/assets/").join(s) } pub fn get_output_path(s: &str) -> PathBuf { Path::new("./examples/output/").join(s) }