From b1c3ca330b3d57411fe63599da9d24dcbd2684c6 Mon Sep 17 00:00:00 2001 From: Timothee 'TTimo' Besset Date: Sun, 15 Jul 2012 11:09:23 -0500 Subject: [PATCH] compat with older python --- config.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index 83894c1..ffaaf09 100644 --- a/config.py +++ b/config.py @@ -364,8 +364,11 @@ class Config: def FinishBuild( self, target, source, env ): print( 'Lookup and bundle the PNG and JPEG libraries' ) # radiant.bin doesn't link to jpeg lib directly, grab that from a module - module_ldd = subprocess.check_output( 'ldd -r install/modules/image.so', shell = True ) - print( module_ldd ) + # Python 2.7 only! + #module_ldd = subprocess.check_output( 'ldd -r install/modules/image.so', shell = True ) + p = subprocess.Popen( 'ldd -r install/modules/image.so', shell = True, stdout = subprocess.PIPE ) + module_ldd = p.communicate()[0] +# print( module_ldd ) def find_library( output, libname ): match = filter( lambda l : l.find( libname ) != -1, output.split( '\n' ) )[0]