OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
fix_mac_rpath.py File Reference

Go to the source code of this file.

Namespaces

 fix_mac_rpath
 

Variables

bool rerunNeeded = True
 
 p = subprocess.Popen(["otool", "-D", fileName], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
 
 out
 
 err
 
 parts = out.decode("utf-8").split()
 
 rpath = parts[0]
 
 name = parts[len(parts)-1]
 
string id = "@rpath/" + name
 
 lines = out.decode("utf-8").split('\n')
 
 libPath = line.split()[0]
 
 libName = parts[len(parts)-1]
 
string newName = '@rpath/' + libName
 
 line = subprocess.check_output(['file', fileName]).decode("utf-8")