#!/usr/bin/env python
# encoding: utf-8
"""
@author: w-devin
@contact: Mr.wyw@foxmail.com
@file: constant.py
@time: 10/25/2020 15:13
@desc:
"""

import os

# package path
PACKAGE_PATH = os.path.abspath(os.path.dirname(os.path.abspath(__file__)))

# supports record types
FILE = 'FILE'
PAYLOAD = 'PAYLOAD'
RECORD_TYPES = [FILE, PAYLOAD]

RULES_PATH = os.path.join(PACKAGE_PATH, 'rules')

YARA_FILE_TYPES = ('.yara', '.yar')