mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-03 12:45:47 +01:00
Update plugin.py
This commit is contained in:
@@ -448,9 +448,10 @@ class NeoBootInstallation(Screen):
|
|||||||
os.system('umount -l /media/usb; sleep 2')
|
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.')
|
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)
|
self.session.open(MessageBox, mess, MessageBox.TYPE_INFO)
|
||||||
if len(os.listdir('/media/usb') ) == 0:
|
if fileExists('/media/usb'):
|
||||||
#print("Directory is empty")
|
if len(os.listdir('/media/usb') ) == 0:
|
||||||
os.system('rm -r /media/usb')
|
#print("Directory is empty")
|
||||||
|
os.system('rm -r /media/usb')
|
||||||
else:
|
else:
|
||||||
self.checkinstall3()
|
self.checkinstall3()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user