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,14 +294,13 @@ class NeoBootImageChoose(Screen):
self.session.open(MessageBox, mess, MessageBox.TYPE_INFO) self.session.open(MessageBox, mess, MessageBox.TYPE_INFO)
else: else:
if not fileExists('/usr/lib/python2.7'): if not fileExists('/usr/lib/python2.7'):
try:
if fileExists('/usr/lib/enigma2/python/Plugins/PLi'): if fileExists('/usr/lib/enigma2/python/Plugins/PLi'):
from Plugins.Extensions.NeoBoot.files.i_neo import SelectImage from Plugins.Extensions.NeoBoot.files.i_neo import SelectImage
self.session.open(SelectImage) self.session.open(SelectImage)
else: elif not fileExists('/usr/lib/enigma2/python/Plugins/PLi'):
from Plugins.Extensions.NeoBoot.files.i_neo import ImageManager from Plugins.Extensions.NeoBoot.files.i_neo import ImageManager
self.session.open(ImageManager) self.session.open(ImageManager)
except: else:
mess = _('Plug installation lost.The plugin doesnt work on python 3 yet. Please try again later.') mess = _('Plug installation lost.The plugin doesnt work on python 3 yet. Please try again later.')
self.session.open(MessageBox, mess, MessageBox.TYPE_INFO) self.session.open(MessageBox, mess, MessageBox.TYPE_INFO)
elif not os.path.exists('/usr/lib/enigma2/python/Plugins/Extensions/ImageDownloader/download.py'): elif not os.path.exists('/usr/lib/enigma2/python/Plugins/Extensions/ImageDownloader/download.py'):