mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-07 14:35:48 +01:00
Update plugin.py
This commit is contained in:
@@ -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)
|
#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':
|
if getCheckExt() != 'vfat' and getCheckExt() == 'ext3' or getCheckExt() == 'ext4':
|
||||||
try:
|
try:
|
||||||
|
if fileExists('/usr/lib/python2.7'):
|
||||||
from Plugins.Extensions.NeoBoot.files.devices import SetDiskLabel
|
from Plugins.Extensions.NeoBoot.files.devices import SetDiskLabel
|
||||||
self.session.open(SetDiskLabel)
|
self.session.open(SetDiskLabel)
|
||||||
|
else:
|
||||||
|
from Plugins.Extensions.NeoBoot.files.tools import DiskLabelSet
|
||||||
|
self.session.open(DiskLabelSet)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
loggscrash = time.localtime(time.time())
|
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)))
|
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)))
|
||||||
|
|||||||
Reference in New Issue
Block a user