mirror of
https://github.com/gutosie/neoboot.git
synced 2025-12-22 16:20:24 +01:00
Update tools.py
This commit is contained in:
@@ -41,12 +41,9 @@ 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
|
|
||||||
else:
|
|
||||||
try:
|
|
||||||
from Plugins.Extensions.NeoBoot.files.neoconsole import Console
|
from Plugins.Extensions.NeoBoot.files.neoconsole import Console
|
||||||
except:
|
else:
|
||||||
from Screens.Console import Console
|
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()
|
||||||
|
|||||||
Reference in New Issue
Block a user