Python/票据理赔自动化/common.py

17 lines
417 B
Python

# -*- coding: utf-8 -*-
"""通用模块"""
import sys
from pathlib import Path
from masterdata import MasterData
sys.path.append(Path(__file__).parent.parent.as_posix())
from utils.rules_engine import RulesEngine
# 实例化主数据
masterdata = MasterData(database=Path(__file__).parent / "database.db")
# 实例化规则引擎
rules_engine = RulesEngine(decisions_folder_path=Path(__file__).parent / "rules")