mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-25 00:25:51 +00:00
Add configuration to specify target directory
This commit is contained in:
parent
99d0ca2b89
commit
849563f6c3
@ -11,6 +11,7 @@ use serde::Deserialize;
|
|||||||
pub struct Config {
|
pub struct Config {
|
||||||
pub default_path: Option<PathBuf>,
|
pub default_path: Option<PathBuf>,
|
||||||
pub default_model: Option<PathBuf>,
|
pub default_model: Option<PathBuf>,
|
||||||
|
pub target_dir: Option<PathBuf>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Config {
|
impl Config {
|
||||||
|
@ -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();
|
let mut parameters = HashMap::new();
|
||||||
for parameter in args.parameters {
|
for parameter in args.parameters {
|
||||||
|
Loading…
Reference in New Issue
Block a user