18 lines
418 B
Python
18 lines
418 B
Python
# -*- coding: utf-8 -*-
|
|
"""通用模块"""
|
|
|
|
from pathlib import Path
|
|
import sys
|
|
|
|
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")
|