This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |