scipion.install.change_rpath module

Replaces in-place a text in binary files.

scipion.install.change_rpath.isElf(fname)[source]

Is fname a file in elf format?

scipion.install.change_rpath.main()[source]
scipion.install.change_rpath.replace(fname, txt_from='REPLACE_ME_WITH_FUNNY_', txt_to='$ORIGIN:$ORIGIN/../lib')[source]

Change txt_from to txt_to in binary file fname. Return 1 if changed.