From a1aa838f31dbb1b9e6f47b9641313c5c445ee2e7 Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Wed, 20 Jul 2011 17:28:58 +0400 Subject: [PATCH] Restore depricated function. --- pym/cl_utils.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pym/cl_utils.py b/pym/cl_utils.py index 8d8578f..0d72762 100644 --- a/pym/cl_utils.py +++ b/pym/cl_utils.py @@ -986,6 +986,13 @@ def getSquashList(): return map(lambda x:{"lzma":"xz"}.get(x,x), list(set(usesSquashFs) & wantMethod)) +def getAvailableX11Drivers(prefix="/"): + """Get available x11 drivers (Depricated Function)""" + xorg_modules_dir = path.join(prefix,'usr/lib/xorg/modules/drivers') + return map(lambda x: x[:-7], + filter(lambda x:x.endswith('_drv.so'), + listDirectory(xorg_modules_dir))) + def lspci(filtername=None,shortInfo=False): """Get hash of lspci, filtred by filtername. If shortInfo, then type,vendor and name get only first word