This commit is contained in:
恍兮惚兮 2024-06-06 19:56:23 +08:00
parent fc1493eb77
commit 9a06f0c0af

View File

@ -129,9 +129,18 @@ def checkconnected(self):
if os.path.exists(syspath) and os.path.isfile(syspath): if os.path.exists(syspath) and os.path.isfile(syspath):
_path = syspath _path = syspath
break break
needstart = ( needstart = False
any([globalconfig["fanyi"][dev]["use"] for dev in develop]) and _path for dev in develop:
) if not globalconfig["fanyi"][dev]["use"]:
continue
if dev == "selfbuild":
if not os.path.exists("./userconfig/selfbuild.py"):
continue
else:
if not os.path.exists("./LunaTranslator/translator/" + dev + ".py"):
continue
needstart = True
break
try: try:
if needstart: if needstart: