14 lines
328 B
Python
14 lines
328 B
Python
import yaml
|
|
from agent_core import Dispatcher
|
|
def main():
|
|
with open('config.yml', 'r') as f:
|
|
config = yaml.safe_load(f.read())
|
|
dispatcher = Dispatcher(config)
|
|
dispatcher.run()
|
|
|
|
def test():
|
|
with open('config.yml', 'r') as f:
|
|
config = yaml.safe_load(f.read())
|
|
|
|
if __name__ == '__main__':
|
|
test() |