mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 21:27:01 +08:00
Fix: dev_tools import error
- Use `python -m dev_tools.button_extract` to run
This commit is contained in:
@@ -3,8 +3,6 @@ import os
|
||||
import numpy as np
|
||||
from PIL import Image
|
||||
|
||||
os.chdir('../')
|
||||
|
||||
from module.base.button import get_color
|
||||
from module.config.config import AzurLaneConfig
|
||||
from module.logger import logger
|
||||
@@ -179,5 +177,5 @@ class AssetExtractor:
|
||||
me = ModuleExtractor(name=module, config=config)
|
||||
me.write()
|
||||
|
||||
|
||||
ae = AssetExtractor(AzurLaneConfig())
|
||||
if __name__ == '__main__':
|
||||
ae = AssetExtractor(AzurLaneConfig('template'))
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import time
|
||||
|
||||
import numpy as np
|
||||
import module.config.server as server
|
||||
|
||||
server.server = 'cn' # Don't need to edit, it's used to avoid error.
|
||||
|
||||
from module.config.config import AzurLaneConfig
|
||||
from module.device.device import Device
|
||||
@@ -33,5 +36,5 @@ class Config:
|
||||
USE_ADB_SCREENSHOT = False
|
||||
|
||||
|
||||
az = EmulatorChecker(AzurLaneConfig().merge(Config()))
|
||||
az = EmulatorChecker(AzurLaneConfig('template').merge(Config()))
|
||||
az.stress_test()
|
||||
|
||||
Reference in New Issue
Block a user