From 8b0667c4a6e4e9993a9172fcd15ce2a07b5535db Mon Sep 17 00:00:00 2001 From: gutosie Date: Sat, 8 Jan 2022 10:38:07 +0200 Subject: [PATCH] Update tools.py --- NeoBoot/files/tools.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/NeoBoot/files/tools.py b/NeoBoot/files/tools.py index 816d389..80c11e9 100644 --- a/NeoBoot/files/tools.py +++ b/NeoBoot/files/tools.py @@ -41,13 +41,10 @@ import time import sys import struct import shutil -if fileExists('/etc/vtiversion.info') or fileExists('/etc/bhversion') or fileExists('/usr/lib/python3.8') or fileExists('/usr/lib/python3.9') : - from Screens.Console import Console +if not fileExists('/etc/vtiversion.info') and not fileExists('/etc/bhversion') and fileExists('/usr/lib/python2.7'): + from Plugins.Extensions.NeoBoot.files.neoconsole import Console else: - try: - from Plugins.Extensions.NeoBoot.files.neoconsole import Console - except: - from Screens.Console import Console + from Screens.Console import Console LinkNeoBoot = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot' neoboot = getNeoLocation() media = getNeoLocation()