-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
41 lines (31 loc) · 952 Bytes
/
main.py
File metadata and controls
41 lines (31 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
'''
Author: tbjuechen
Date: 2024-08-12
Version: 1.0
Description: main file
License: MIT
'''
from runner import Runner
from runner.connector import MumuConnector
from runner.player import CVPlayer
from runner.simple import Mitama,Active
from loguru import logger
import pickle
import time
class Test(Runner):
def __init__(self, **kwargs):
super().__init__(**kwargs)
def work(self):
self.logger.info('Test runner working')
loc = self._find('ok.jpg')
if loc:
self.logger.info(f'Found at {loc}')
self.logger.info('Test runner finished')
if __name__ == '__main__':
test1 = Active(connection_class=MumuConnector, player=CVPlayer())
# test2 = Mitama(connection_class=MumuConnector, connector_args={'port':'16416'}, player=CVPlayer())
test1.start()
# test2.start()
test1.join()
# test2.join()
# test = Test(connection_class=MumuConnector, player=CVPlayer())