Update plugin.py

This commit is contained in:
gutosie
2022-03-23 21:41:16 +02:00
committed by GitHub
parent c130a7d15c
commit 8054473eeb

View File

@@ -447,12 +447,12 @@ class NeoBootInstallation(Screen):
def checkinstall2(self):
if fileExists('/media/usb/ImageBoot/') and fileExists('/media/hdd/ImageBoot/'):
os.system('umount -l /media/usb; sleep 2')
mess = _('An error was encountered, you have neoboot installed on usb and hdd.\nUninstall one directories from one drive.')
self.session.open(MessageBox, mess, MessageBox.TYPE_INFO)
if fileExists('/media/usb'):
if len(os.listdir('/media/usb') ) == 0:
if fileExists('/media/usb'):
if len(os.listdir('/media/usb') ) == 0:
#print("Directory is empty")
os.system('rm -r /media/usb')
os.system('rm -r /media/usb')
mess = _('An error was encountered, you have neoboot installed on usb and hdd.\nUninstall one directories from one drive.')
self.session.open(MessageBox, mess, MessageBox.TYPE_INFO)
else:
self.checkinstall3()