Add a features modules that process the flask dict.
This commit is contained in:
parent
173f8d9b9a
commit
0abbf042dd
3 changed files with 14 additions and 0 deletions
5
features/__init__.py
Normal file
5
features/__init__.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
def import_features(config_dict):
|
||||
for feature, feature_val in config_dict.items():
|
||||
if feature.startswith('FEATURE_'):
|
||||
feature_name = feature[8:]
|
||||
globals()[feature_name] = feature_val
|
Reference in a new issue