import subprocess import os def run_install_script(): script_path = "install.sh" # Path to the install.sh file # Check if the file exists if not os.path.exists(script_path): print(f"Error: {script_path} not found.") return try: # Run the install.sh script with bash result = subprocess.run(["bash", script_path], check=True, text=True, capture_output=True) print("Script Output:") print(result.stdout) except subprocess.CalledProcessError as e: print("Error occurred while running the script:") print(e.stderr) if __name__ == "__main__": run_install_script()