上传文件
This commit is contained in:
@@ -316,7 +316,7 @@ def init_bcl_calculator(software_category, engineering_type, calculation_type):
|
||||
|
||||
# 构建计算配置路径
|
||||
# 格式:计算配置/软件类型(主网,配网,技改)/计算类型(工程量,人材机)/工程类型(预算,清单)
|
||||
config_path = f"计算配置/{software_category}/{calculation_type}/{engineering_type}"
|
||||
config_path = f"equipment_calculation/计算配置/{software_category}/{calculation_type}/{engineering_type}"
|
||||
|
||||
print(f"加载计算配置: {config_path}")
|
||||
|
||||
@@ -333,14 +333,14 @@ def init_bcl_calculator(software_category, engineering_type, calculation_type):
|
||||
print(f"创建计算配置目录失败: {e}")
|
||||
|
||||
# 如果目录不存在,使用默认配置
|
||||
default_path = "计算配置/主网/工程量/预算"
|
||||
default_path = "equipment_calculation/计算配置/主网/工程量/预算"
|
||||
print(f"使用默认计算配置: {default_path}")
|
||||
|
||||
# 检查默认配置目录是否存在
|
||||
if not os.path.exists(default_path):
|
||||
print(f"默认计算配置目录不存在: {default_path}")
|
||||
# 尝试使用原始默认配置
|
||||
original_default_path = "计算配置/主网/主网预算"
|
||||
original_default_path = "equipment_calculation/计算配置/主网/主网预算"
|
||||
print(f"尝试使用原始默认计算配置: {original_default_path}")
|
||||
|
||||
if os.path.exists(original_default_path):
|
||||
@@ -356,14 +356,14 @@ def init_bcl_calculator(software_category, engineering_type, calculation_type):
|
||||
if False == result:
|
||||
print(f"加载脚本错误: {calculator.get_last_error()}")
|
||||
# 尝试使用默认配置
|
||||
default_path = "计算配置/主网/工程量/预算"
|
||||
default_path = "equipment_calculation/计算配置/主网/工程量/预算"
|
||||
print(f"尝试使用默认计算配置: {default_path}")
|
||||
|
||||
# 检查默认配置目录是否存在
|
||||
if not os.path.exists(default_path):
|
||||
print(f"默认计算配置目录不存在: {default_path}")
|
||||
# 尝试使用原始默认配置
|
||||
original_default_path = "计算配置/主网/主网预算"
|
||||
original_default_path = "equipment_calculation/计算配置/主网/主网预算"
|
||||
print(f"尝试使用原始默认计算配置: {original_default_path}")
|
||||
|
||||
if os.path.exists(original_default_path):
|
||||
|
||||
Reference in New Issue
Block a user