-ldd = shutil.which ('ldd')
-if ldd:
- ldd = [ldd]
-else:
- ldd = shutil.which ('otool')
- if ldd:
- ldd = [ldd, '-L'] # otool -L
+ldd = os.getenv ('LDD', shutil.which ('ldd'))
+if not ldd:
+ otool = os.getenv ('OTOOL', shutil.which ('otool'))
+ if otool:
+ ldd = otool + ' -L'