change fixed dir to read from config
This commit is contained in:
parent
be862d218c
commit
fcfae4f30e
2 changed files with 27 additions and 3 deletions
|
|
@ -17,7 +17,7 @@ pub struct VersionRecipe {
|
|||
impl VersionRecipe {
|
||||
// import - read all file with given format from directory and mixing them together as 1 recipe
|
||||
pub fn create_versioning_by_country(country: &str) -> Self {
|
||||
let mut path = String::from(RECIPES_DIR);
|
||||
let mut path = String::from(get_recipe_dir().get("RECIPE_DIR").unwrap());
|
||||
path.push_str(country);
|
||||
path.push('/');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue