Update tools.py

This commit is contained in:
gutosie
2022-01-08 10:38:07 +02:00
committed by GitHub
parent 62673777ba
commit 8b0667c4a6

View File

@@ -41,13 +41,10 @@ import time
import sys import sys
import struct import struct
import shutil import shutil
if fileExists('/etc/vtiversion.info') or fileExists('/etc/bhversion') or fileExists('/usr/lib/python3.8') or fileExists('/usr/lib/python3.9') : if not fileExists('/etc/vtiversion.info') and not fileExists('/etc/bhversion') and fileExists('/usr/lib/python2.7'):
from Screens.Console import Console from Plugins.Extensions.NeoBoot.files.neoconsole import Console
else: else:
try: from Screens.Console import Console
from Plugins.Extensions.NeoBoot.files.neoconsole import Console
except:
from Screens.Console import Console
LinkNeoBoot = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot' LinkNeoBoot = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot'
neoboot = getNeoLocation() neoboot = getNeoLocation()
media = getNeoLocation() media = getNeoLocation()