Commit 2eee22f7 authored by kurumuz's avatar kurumuz

fix loading

parent f5eca89f
...@@ -135,6 +135,7 @@ def init_config_model(): ...@@ -135,6 +135,7 @@ def init_config_model():
# Resolve where we get our model and data from. # Resolve where we get our model and data from.
config.model_path = os.getenv('MODEL_PATH', None) config.model_path = os.getenv('MODEL_PATH', None)
config.module_path = os.getenv('MODULE_PATH', None)
config.prior_path = os.getenv('PRIOR_PATH', None) config.prior_path = os.getenv('PRIOR_PATH', None)
# Misc settings # Misc settings
...@@ -165,7 +166,7 @@ def init_config_model(): ...@@ -165,7 +166,7 @@ def init_config_model():
model_hash = crc32(model_path) model_hash = crc32(model_path)
#Load Modules #Load Modules
modules = load_modules(folder) modules = load_modules(config.module_path)
#attach it to the model #attach it to the model
model.premodules = modules model.premodules = modules
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment