change fixed dir to read from config

This commit is contained in:
Pakin 2025-07-31 09:20:38 +07:00
parent be862d218c
commit fcfae4f30e
2 changed files with 27 additions and 3 deletions

View file

@ -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('/');