summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/ini/model.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/common/ini/model.c b/common/ini/model.c
index 704eda804f..975b2d4558 100644
--- a/common/ini/model.c
+++ b/common/ini/model.c
@@ -1276,7 +1276,14 @@ int parse_model_sum(const char *file_name, char *model_name)
const char *get_model_sum_path(void)
{
- return DEFAULT_MODEL_SUM_PATH;
+ char *model_path;
+
+ model_path = getenv("model_path");
+ if (model_path == NULL)
+ return DEFAULT_MODEL_SUM_PATH;
+
+ printf("%s: %s\n", __func__, model_path);
+ return model_path;
}
int handle_model_list(void)