From 56dd6d744c1b39b6b294111c7ac31a8e9f4286bb Mon Sep 17 00:00:00 2001 From: gutosie Date: Sun, 23 Jan 2022 12:41:47 +0200 Subject: [PATCH] Update devices.py --- NeoBoot/files/devices.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NeoBoot/files/devices.py b/NeoBoot/files/devices.py index 76b4c9e..8db14cd 100644 --- a/NeoBoot/files/devices.py +++ b/NeoBoot/files/devices.py @@ -30,6 +30,7 @@ from Screens.VirtualKeyBoard import VirtualKeyBoard import gettext from Plugins.Extensions.NeoBoot.files.stbbranding import getTunerModel, getCheckExt, getBoxHostName, getMyUUID if not fileExists('/usr/lib/python2.7'): + open = file getoutput = "os.system" else: from commands import getoutput @@ -482,7 +483,7 @@ class DevicesConf(Screen, ConfigListScreen): self.device = extra_args[0] self.mountp = extra_args[1] if fileExists('/usr/lib/python2.7'): - self.device_uuid = ('UUID=' + result.split('UUID=')[1].split(' ')[0].readline().strip().replace('"', '')) + self.device_uuid = 'UUID=' + result.split('UUID=')[1].split(' ')[0].replace('"', '') self.device_type = result.split('TYPE=')[1].split(' ')[0].replace('"', '') else: self.device_uuid = 'UUID=' + getMyUUID()