Update plugin.py

This commit is contained in:
gutosie
2022-03-23 13:08:12 +02:00
committed by GitHub
parent 08e6494022
commit baccbc3981

View File

@@ -448,9 +448,10 @@ class NeoBootInstallation(Screen):
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 len(os.listdir('/media/usb') ) == 0:
#print("Directory is empty")
os.system('rm -r /media/usb')
if fileExists('/media/usb'):
if len(os.listdir('/media/usb') ) == 0:
#print("Directory is empty")
os.system('rm -r /media/usb')
else:
self.checkinstall3()