Skip to content

Commit b188af4

Browse files
committed
fixed windows 下 hub 路径比较
1 parent 3c32fb4 commit b188af4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hikyuu/hub.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def add_local_hub(self, name, path):
266266
# 检查仓库目录名称是否与其他 python 模块存在冲突
267267
tmp = importlib.import_module(os.path.basename(local_path))
268268
checkif(
269-
tmp.__path__[0] != local_path,
269+
tmp.__path__[0] != local_path if sys.platform == 'win32' else tmp.__path__[0].lower() != local_path.lower(),
270270
name,
271271
ModuleConflictError,
272272
conflict_module=tmp.__path__[0],

0 commit comments

Comments
 (0)