From af4d0c9ebf6326181009b5556468e45ab25f233f Mon Sep 17 00:00:00 2001 From: gutosie Date: Sun, 23 Jan 2022 11:42:08 +0200 Subject: [PATCH] Update plugin.py --- NeoBoot/plugin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NeoBoot/plugin.py b/NeoBoot/plugin.py index ff19cef..5c19413 100644 --- a/NeoBoot/plugin.py +++ b/NeoBoot/plugin.py @@ -209,8 +209,12 @@ class NeoBootInstallation(Screen): #self.session.open(MessageBox, _('Skip this step and install neoboot.\nThis option is available in the neoboot menu.'), type=MessageBox.TYPE_INFO) if getCheckExt() != 'vfat' and getCheckExt() == 'ext3' or getCheckExt() == 'ext4': try: + if fileExists('/usr/lib/python2.7'): from Plugins.Extensions.NeoBoot.files.devices import SetDiskLabel self.session.open(SetDiskLabel) + else: + from Plugins.Extensions.NeoBoot.files.tools import DiskLabelSet + self.session.open(DiskLabelSet) except Exception as e: loggscrash = time.localtime(time.time()) LogCrashGS('%02d:%02d:%d %02d:%02d:%02d - %s\r\n' % (loggscrash.tm_mday, loggscrash.tm_mon, loggscrash.tm_year, loggscrash.tm_hour, loggscrash.tm_min, loggscrash.tm_sec, str(e)))