# -*- coding: utf-8 -*-
#!/usr/bin/env python

__author__ = 'cbb'

import platform

systemName = platform.system()

#配置文件 位置
config_file_path = 'config.ini'
if systemName == 'Windows':
    config_file_path = 'D:\Data\config.ini'

#WWW 目录
www_path = './www/Data'
if systemName == 'Windows':
    www_path = 'D:\Data'

#关键词 - 文件位置
key_path = 'keys.xlsx'
if systemName == 'Windows':
    key_path = www_path + '\keys.xlsx'

#结果目录
if systemName == 'Windows':
    dir_path = www_path + '\Result\\'
else:
    dir_path = '/Users/cbb/Documents/pythonspace/video_spider_master/data/'

#日志目录
dir_log = dir_path + 'log/'

#mysql 结果表
mysql_result_table = 'video_result'

from util.MyLogger import Logger
from util.code_convert import GetNowDate
infoLogger = Logger(logname=dir_log+'info_video(' + GetNowDate()+ ').log', logger='I')
errorLogger = Logger(logname=dir_log+'error_video(' + GetNowDate()+ ').log', logger='E')