Spaces:
Paused
Paused
File size: 520 Bytes
9532492 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import subprocess
import sys
import os
if __name__ == "__main__":
# Make it executable
os.chmod("./spritefusion", 0o755)
try:
result = subprocess.run(
["./spritefusion"], check=True, capture_output=False)
sys.exit(result.returncode)
except subprocess.CalledProcessError as e:
print(f"Binary execution failed with return code {e.returncode}")
sys.exit(e.returncode)
except Exception as e:
print(f"Error executing binary: {e}")
sys.exit(1)
|