mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
dev
This commit is contained in:
parent
fc1493eb77
commit
9a06f0c0af
@ -129,9 +129,18 @@ def checkconnected(self):
|
||||
if os.path.exists(syspath) and os.path.isfile(syspath):
|
||||
_path = syspath
|
||||
break
|
||||
needstart = (
|
||||
any([globalconfig["fanyi"][dev]["use"] for dev in develop]) and _path
|
||||
)
|
||||
needstart = False
|
||||
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:
|
||||
|
||||
if needstart:
|
||||
|
Loading…
x
Reference in New Issue
Block a user