mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44: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):
|
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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user