Skip to content

Instantly share code, notes, and snippets.

View GiudGiud's full-sized avatar

Guillaume Giudicelli GiudGiud

View GitHub Profile
@GiudGiud
GiudGiud / bless.py
Created September 29, 2025 18:14 — forked from milljm/bless.py
Recursively seek out and remove duplicate LC_RPATH entries from linked libraries with supplied binary
#!/usr/bin/env python3
''' A tool which searches recursively and removes duplicate loader paths '''
import subprocess
import sys
import os
def run_command(command):
"""Run a shell command and return the output."""
try:
result = subprocess.run(command, check=True, text=True, capture_output=True)