test
This commit is contained in:
@@ -63,19 +63,8 @@ class CustomFormatter(logging.Formatter):
|
|||||||
|
|
||||||
# Suuport를 logger 생성전에 쓰지 않기 위해 중복 선언
|
# Suuport를 logger 생성전에 쓰지 않기 위해 중복 선언
|
||||||
def read_yaml(filepath):
|
def read_yaml(filepath):
|
||||||
import re
|
|
||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
print('111111111111')
|
|
||||||
print(filepath)
|
|
||||||
print('222222')
|
|
||||||
import sys
|
|
||||||
print(sys.argv)
|
|
||||||
print('333333333333')
|
|
||||||
|
|
||||||
yaml.reader.Reader.NON_PRINTABLE = re.compile('[^\t\n\r -<2D>-\U0010ffff]')
|
|
||||||
with open(filepath, encoding='utf8') as file:
|
with open(filepath, encoding='utf8') as file:
|
||||||
#with open(filepath, 'rb') as file:
|
|
||||||
data = yaml.load(file, Loader=yaml.FullLoader)
|
data = yaml.load(file, Loader=yaml.FullLoader)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
import copy
|
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
from support.base.yaml import SupportYaml
|
from support.base.yaml import SupportYaml
|
||||||
|
|
||||||
from framework import F
|
from framework import F
|
||||||
|
|
||||||
|
|
||||||
class MenuManager:
|
class MenuManager:
|
||||||
menu_map = None
|
menu_map = None
|
||||||
|
|
||||||
@@ -18,21 +20,8 @@ class MenuManager:
|
|||||||
cls.menu_map = SupportYaml.read_yaml(menu_yaml_filepath)
|
cls.menu_map = SupportYaml.read_yaml(menu_yaml_filepath)
|
||||||
|
|
||||||
|
|
||||||
"""
|
|
||||||
for cate in cls.menu_map:
|
|
||||||
cate['count'] = 0
|
|
||||||
cls.menu_map.insert(len(cls.menu_map)-1, {
|
|
||||||
'name':'미분류', 'count':0, 'list':[]
|
|
||||||
})
|
|
||||||
cls.menu_map[-1]['count'] = 1
|
|
||||||
F.logger.debug(cls.menu_map)
|
|
||||||
"""
|
|
||||||
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def init_menu(cls):
|
def init_menu(cls):
|
||||||
#F.logger.debug(d(plugin_menus))
|
|
||||||
#print(plugin_menus)
|
|
||||||
cls.__load_menu_yaml()
|
cls.__load_menu_yaml()
|
||||||
from .init_plugin import PluginManager
|
from .init_plugin import PluginManager
|
||||||
plugin_menus = PluginManager.plugin_menus
|
plugin_menus = PluginManager.plugin_menus
|
||||||
|
|||||||
Reference in New Issue
Block a user