From 849563f6c38ea59fc31cccb89ab7970b5325b3d1 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 17 Mar 2022 14:30:33 +0100 Subject: [PATCH] Add configuration to specify target directory --- fj-app/src/config.rs | 1 + fj-app/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/fj-app/src/config.rs b/fj-app/src/config.rs index 94d6e8967..0d6b64069 100644 --- a/fj-app/src/config.rs +++ b/fj-app/src/config.rs @@ -11,6 +11,7 @@ use serde::Deserialize; pub struct Config { pub default_path: Option, pub default_model: Option, + pub target_dir: Option, } impl Config { diff --git a/fj-app/src/main.rs b/fj-app/src/main.rs index 684126125..85bd4bb9e 100644 --- a/fj-app/src/main.rs +++ b/fj-app/src/main.rs @@ -68,7 +68,7 @@ fn main() -> anyhow::Result<()> { } } - let model = Model::from_path(path, None)?; + let model = Model::from_path(path, config.target_dir)?; let mut parameters = HashMap::new(); for parameter in args.parameters {