我正在使用SerpentAI,并且我必须运行python脚本,它给了我这个错误。
PermissionError:[Errno 13]权限被拒绝:'/Applications/OpenEmu.app'
这里是Python代码
from serpent.game import Game
from .api.api import OpenEmuAPI
from serpent.utilities import Singleton
class SerpentOpenEmuGame(Game, metaclass=Singleton):
def __init__(self, **kwargs):
kwargs["platform"] = "executable"
kwargs["window_name"] = "Open Emu"
kwargs["executable_path"] = "/Applications/OpenEmu.app"
super().__init__(**kwargs)
self.api_class = OpenEmuAPI
self.api_instance = None
@property
def screen_regions(self):
regions = {
"SAMPLE_REGION": (0, 0, 0, 0)
}
return regions
@property
def ocr_presets(self):
presets = {
"SAMPLE_PRESET": {
"extract": {
"gradient_size": 1,
"closing_size": 1
},
"perform": {
"scale": 10,
"order": 1,
"horizontal_closing": 1,
"vertical_closing": 1
}
}
}
return presets
我正在使用MacOS
是否有解决方案?或者仅仅是SerpentAI搞砸了?