缓存模块和采集模块
This commit is contained in:
14
main.py
Normal file
14
main.py
Normal file
@@ -0,0 +1,14 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user