mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 03:51:18 +00:00
compat with older python
This commit is contained in:
parent
000dd45943
commit
b1c3ca330b
1 changed files with 5 additions and 2 deletions
|
@ -364,8 +364,11 @@ class Config:
|
||||||
def FinishBuild( self, target, source, env ):
|
def FinishBuild( self, target, source, env ):
|
||||||
print( 'Lookup and bundle the PNG and JPEG libraries' )
|
print( 'Lookup and bundle the PNG and JPEG libraries' )
|
||||||
# radiant.bin doesn't link to jpeg lib directly, grab that from a module
|
# 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 )
|
# Python 2.7 only!
|
||||||
print( module_ldd )
|
#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 ):
|
def find_library( output, libname ):
|
||||||
match = filter( lambda l : l.find( libname ) != -1, output.split( '\n' ) )[0]
|
match = filter( lambda l : l.find( libname ) != -1, output.split( '\n' ) )[0]
|
||||||
|
|
Loading…
Reference in a new issue