monero/tests/difficulty/wide_difficulty.py

22 lines
359 B
Python
Raw Normal View History

2024-10-23 08:09:59 -04:00
#!/usr/bin/env python3
import sys
import subprocess
python = sys.argv[1]
py = sys.argv[2]
c = sys.argv[3]
data = sys.argv[4]
first = python + " " + py + " > " + data
second = [c, '--wide', data]
try:
print('running: ', first)
subprocess.check_call(first, shell=True)
print('running: ', second)
subprocess.check_call(second)
except:
sys.exit(1)