From 18c708da581ecea910e4256ee8999e84013493f0 Mon Sep 17 00:00:00 2001 From: "Junyan Qin (Chin)" Date: Tue, 13 May 2025 16:52:16 +0800 Subject: [PATCH] fix: windows path bug in importutil (#1404) --- pkg/utils/importutil.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/utils/importutil.py b/pkg/utils/importutil.py index ad93e9f7..1933d611 100644 --- a/pkg/utils/importutil.py +++ b/pkg/utils/importutil.py @@ -32,6 +32,7 @@ def import_dir(path: str): rel_path = full_path.replace(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), '') rel_path = rel_path[1:] rel_path = rel_path.replace('/', '.')[:-3] + rel_path = rel_path.replace('\\', '.') importlib.import_module(rel_path)