Only print python fix up lib path if used

This commit is contained in:
Steve Myers 2022-03-30 12:43:55 -07:00
parent c66dfdd52a
commit f4e097c4ac
No known key found for this signature in database
GPG Key ID: 8105A46B22C2D051

View File

@ -116,18 +116,16 @@ struct Opt {
fn main() -> Result<(), Box<dyn std::error::Error>> { fn main() -> Result<(), Box<dyn std::error::Error>> {
let opt = Opt::from_args(); let opt = Opt::from_args();
println!("{:?}", opt);
println!("Chosen language is {}", opt.language); println!("Chosen language is {}", opt.language);
println!("Output directory is {}", opt.out_dir); println!("Output directory is {}", opt.out_dir);
println!("Python fix up lib path is {:?}", opt.python_fixup_path);
generate_bindings(&opt)?; generate_bindings(&opt)?;
if opt.language == Language::PYTHON { if opt.language == Language::PYTHON {
if let Some(name) = opt.python_fixup_path { if let Some(path) = &opt.python_fixup_path {
println!("Fixing up python lib path"); println!("Fixing up python lib path, {}", &path);
fixup_python_lib_path(&opt.out_dir, &name)?; fixup_python_lib_path(&opt.out_dir, &path)?;
} }
} }
Ok(()) Ok(())