From 5982fd29b7ea8b8efb8cea083ba7589b9ab1d51d Mon Sep 17 00:00:00 2001 From: gutosie Date: Tue, 9 Dec 2025 16:07:08 +0200 Subject: [PATCH] Update plugin.py --- NeoBoot/plugin.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/NeoBoot/plugin.py b/NeoBoot/plugin.py index bdbbdec..b58fa0b 100644 --- a/NeoBoot/plugin.py +++ b/NeoBoot/plugin.py @@ -293,10 +293,14 @@ class NeoBootImageChoose(Screen): mess = _('Downloading available only from the image Flash.') self.session.open(MessageBox, mess, MessageBox.TYPE_INFO) else: - if not fileExists('/usr/lib/python2.7') and fileExists('/usr/lib/enigma2/python/Plugins/PLi'): - try: - from Plugins.Extensions.NeoBoot.files.i_neo import SelectImage - self.session.open(SelectImage) + 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: + 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)