Update plugin.py

This commit is contained in:
gutosie
2025-12-09 19:02:18 +02:00
committed by GitHub
parent 9ee44f884e
commit a4fd3eabf7

View File

@@ -294,16 +294,15 @@ class NeoBootImageChoose(Screen):
self.session.open(MessageBox, mess, MessageBox.TYPE_INFO)
else:
if not fileExists('/usr/lib/python2.7'):
try:
if fileExists('/usr/lib/enigma2/python/Plugins/PLi'):
from Plugins.Extensions.NeoBoot.files.i_neo import SelectImage
self.session.open(SelectImage)
else:
elif not fileExists('/usr/lib/enigma2/python/Plugins/PLi'):
from Plugins.Extensions.NeoBoot.files.i_neo import ImageManager
self.session.open(ImageManager)
except:
mess = _('Plug installation lost.The plugin doesnt work on python 3 yet. Please try again later.')
self.session.open(MessageBox, mess, MessageBox.TYPE_INFO)
else:
mess = _('Plug installation lost.The plugin doesnt work on python 3 yet. Please try again later.')
self.session.open(MessageBox, mess, MessageBox.TYPE_INFO)
elif not os.path.exists('/usr/lib/enigma2/python/Plugins/Extensions/ImageDownloader/download.py'):
message = _('Plugin ImageDownloader not installed!\nInstall plugin to download new image? \and---Continue ?---')
ybox = self.session.openWithCallback(self.InstallImageDownloader, MessageBox, message, MessageBox.TYPE_YESNO)