Skip to content

Commit

Permalink
修复变量名BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
winezer0 committed Apr 23, 2023
1 parent dd1f775 commit 9accc13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/lib_dyna_rule/set_basic_var.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def set_base_var_dict(base_var_dir,
# 并 同时读文件组装 {基本变量名: [基本变量文件内容列表]}
for base_var_file_name in base_var_file_list:
base_file_pure_name = os.path.basename(base_var_file_name)
base_file_pure_name = base_file_pure_name.rsplit('.',1)[0]
base_var_name = f'%{base_file_pure_name}%'

# 读文件到列表
Expand Down Expand Up @@ -63,6 +64,7 @@ def set_base_var_dict_frequency(base_var_dir,
# 并 同时读文件组装 {基本变量名: [基本变量文件内容列表]}
for base_var_file_name in base_var_file_list:
base_file_pure_name = base_var_file_name.rsplit('.', 1)[0]
base_file_pure_name = base_file_pure_name.rsplit('.',1)[0]
base_var_name = f'%{base_file_pure_name}%'

# 读文件到列表
Expand Down

0 comments on commit 9accc13

Please sign in to comment.