move pkg, resources, dbm_lib, to under 1 opendbm directory
This commit is contained in:
29
opendbm/dbm_lib/config/config_derive_feature.py
Normal file
29
opendbm/dbm_lib/config/config_derive_feature.py
Normal file
@@ -0,0 +1,29 @@
|
||||
"""
|
||||
file_name: config_derive_feature
|
||||
project_name: DBM
|
||||
created: 2020-20-07
|
||||
"""
|
||||
|
||||
import yaml
|
||||
from opendbm.dbm_lib import DBMLIB_DERIVE_FEATURE_CONFIG
|
||||
|
||||
class ConfigDeriveReader(object):
|
||||
"""Summary
|
||||
Read sevice end ponit
|
||||
"""
|
||||
def __init__(self,
|
||||
feature_config_yml=None):
|
||||
"""Summary
|
||||
Args:
|
||||
feature_config_yml (None, optional): yml file defined service configuration
|
||||
"""
|
||||
|
||||
if feature_config_yml is None:
|
||||
feature_config = DBMLIB_DERIVE_FEATURE_CONFIG
|
||||
else:
|
||||
feature_config = feature_config_yml
|
||||
|
||||
with open(feature_config, 'r') as ymlfile:
|
||||
config = yaml.load(ymlfile)
|
||||
self.base_derive = config
|
||||
|
||||
Reference in New Issue
Block a user