This repository was archived by the owner on Apr 13, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,11 @@ def get_plugins(cls):
34
34
"""
35
35
36
36
logger = logging .getLogger (__name__ )
37
- locations = [dingdangpath .PLUGIN_PATH , dingdangpath .CONTRIB_PATH ]
37
+ locations = [
38
+ dingdangpath .PLUGIN_PATH ,
39
+ dingdangpath .CONTRIB_PATH ,
40
+ dingdangpath .CUSTOM_PATH
41
+ ]
38
42
logger .debug ("Looking for plugins in: %s" ,
39
43
', ' .join (["'%s'" % location for location in locations ]))
40
44
plugins = []
Original file line number Diff line number Diff line change 10
10
TEMP_PATH = os .path .join (APP_PATH , "temp" )
11
11
PLUGIN_PATH = os .path .join (LIB_PATH , "plugins" )
12
12
13
- CONFIG_PATH = os .path .expanduser (os .getenv
14
- ('DINGDANG_CONFIG' , '~/.dingdang' ))
15
- CONTRIB_PATH = os .path .expanduser (os .getenv
16
- ('DINGDANG_CONFIG' , '~/.dingdang/contrib' ))
13
+ CONFIG_PATH = os .path .expanduser (
14
+ os .getenv ('DINGDANG_CONFIG' , '~/.dingdang' )
15
+ )
16
+ CONTRIB_PATH = os .path .expanduser (
17
+ os .getenv ('DINGDANG_CONFIG' , '~/.dingdang/contrib' )
18
+ )
19
+ CUSTOM_PATH = os .path .expanduser (
20
+ os .getenv ('DINGDANG_CONFIG' , '~/.dingdang/custom' )
21
+ )
17
22
18
23
19
24
def config (* fname ):
You can’t perform that action at this time.
0 commit comments