1 Star 0 Fork 5

Lostway/x2openEuler-aparser

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
x2openEuler.py 850 Bytes
一键复制 编辑 原始数据 按行查看 历史
lovelijunyi 提交于 2021-03-23 15:55 . 适配版本
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import os
from src.plugin.aparser.manage.manager import Manager
from src.plugin.aparser.factory.datasource import Datasource
from src.plugin.aparser.system_config import PARSER_CONFIG_DIR, PARSER_CUSTOM_DIR, PARSER_REGEX_PATH
__here__ = os.path.dirname(os.path.abspath(__file__))
def main():
param_config_file = os.path.join(PARSER_CONFIG_DIR, "beat_test.json")
# param_config_file = os.path.join(PARSER_CONFIG_DIR, "beat_linux.json")
datasource = Datasource(param_config_file)
manager = Manager(PARSER_REGEX_PATH, PARSER_CUSTOM_DIR, datasource)
temp_dir = os.path.join(__here__, 'data/temp')
if not os.path.exists(temp_dir):
os.makedirs(temp_dir)
manager.parse(write=True, file_dir=temp_dir)
# manager.parse(print=True)
if __name__ == "__main__":
main()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Lostwayzxc/x2openEuler-aparser.git
git@gitee.com:Lostwayzxc/x2openEuler-aparser.git
Lostwayzxc
x2openEuler-aparser
x2openEuler-aparser
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385