+ otoolProcess = Popen('otool -D "%s"' % lib, shell=True, stdout=PIPE, stderr=PIPE)
+ try:
+ libname = [line for line in otoolProcess.stdout][1].strip()
+ except:
+ libname = ''
+ otoolProcess.stdout.close()
+ if otoolProcess.wait() == 1: # we found some Resource dir or similar -> skip
+ continue