mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 04:47:48 +08:00
实现配置文件插拔式设计
This commit is contained in:
+2
-2
@@ -7,7 +7,7 @@ from common import utils
|
||||
from common import resolve
|
||||
from common import request
|
||||
from common.module import Module
|
||||
from config import setting
|
||||
from config import settings
|
||||
from config.log import logger
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@ def filter_url(domain, url, black_name):
|
||||
|
||||
|
||||
def get_black_name():
|
||||
path = setting.data_storage_dir.joinpath('common_js_library.json')
|
||||
path = settings.data_storage_dir.joinpath('common_js_library.json')
|
||||
with open(path) as fp:
|
||||
return json.load(fp)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user