ChannelSelection: We need to rename/remove from the correct directory
authorlittlesat <littlesat99@yahoo.com>
Sun, 25 Jan 2015 11:45:07 +0000 (12:45 +0100)
committerlittlesat <littlesat99@yahoo.com>
Sun, 25 Jan 2015 11:45:07 +0000 (12:45 +0100)
lib/python/Screens/ChannelSelection.py

index 2034e45..bbcfad1 100644 (file)
@@ -303,6 +303,7 @@ class ChannelContextMenu(Screen):
                if answer:
                        for file in os.listdir("/etc/enigma2/"):
                                if file.startswith("userbouquet") and file.endswith(".del"):
+                                       file = "/etc/enigma2/" + file
                                        print "permantly remove file ", file
                                        os.remove(file)
                        self.close()
@@ -310,6 +311,7 @@ class ChannelContextMenu(Screen):
        def restoreDeletedBouquets(self):
                for file in os.listdir("/etc/enigma2/"):
                        if file.startswith("userbouquet") and file.endswith(".del"):
+                               file = "/etc/enigma2/" + file
                                print "restore file ", file[:-4]
                                os.rename(file, file[:-4])
                eDVBDB.getInstance().reloadBouquets()