From 5cd334311763c76b8a39569e447b2438f64ee1ac Mon Sep 17 00:00:00 2001 From: Bibo Hao Date: Fri, 20 Jun 2025 02:14:29 +0800 Subject: [PATCH] Update paths.py Signed-off-by: Bibo Hao --- src/aloha/config/paths.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aloha/config/paths.py b/src/aloha/config/paths.py index 8d1cf6a..5e89ea0 100644 --- a/src/aloha/config/paths.py +++ b/src/aloha/config/paths.py @@ -1,6 +1,7 @@ __all__ = ('get_resource_dir', 'get_config_dir', 'get_current_module_dir', 'get_project_base_dir', 'path_join') import os +import sys import warnings @@ -24,7 +25,6 @@ def get_config_dir(*args) -> str: if dir_config is None or len(dir_config.strip()) == 0: dir_config = 'config' dir_config = path_join(dir_resource, dir_config, *args) - # print(' ---> Using config dir:', dir_config) return dir_config @@ -54,7 +54,7 @@ def get_config_files() -> list: if not os.path.exists(file): msgs.append('Expecting config file [%s] but it does not exists!' % file) else: - print(' ---> Loading config file [%s]' % file) + print(' ---> Loading config file [%s]' % file, file=sys.stderr) ret.append(os.path.expandvars(f)) if len(ret) == 0: msgs.append('No config files set properly, EMPTY config will be used!')