-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
49 lines (45 loc) · 1.22 KB
/
setup.py
File metadata and controls
49 lines (45 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
setting = {
'filepath' : __file__,
'use_db': False,
'use_default_setting': False,
'home_module': None,
'menu': {
'uri': __package__,
'name': 'RE 다운로드',
'list': [
{
'uri': 'download',
'name': '다운로드',
'list': [
{
'uri': 'list',
'name': '다운로드 목록',
},
]
},
{
'uri': 'manual',
'name': '매뉴얼',
'list': [
{
'uri': 'README.md',
'name': 'README',
},
]
},
{
'uri': 'log',
'name': '로그',
},
]
},
'default_route': 'normal',
}
from plugin import *
P = create_plugin_instance(setting)
try:
from .mod_download import ModuleDownload
P.set_module_list([ModuleDownload])
except Exception as e:
P.logger.error(f'Exception:{str(e)}')
P.logger.error(traceback.format_exc())