cryptotrader / editor.py
Nhughes09
Complete application update with UI fixes and secret removal
fb03795
raw
history blame contribute delete
309 Bytes
import sys
import os
file_path = sys.argv[1]
with open(file_path, 'r') as f:
lines = f.readlines()
with open(file_path, 'w') as f:
for line in lines:
if '20bf7f03' in line and line.startswith('pick'):
f.write(line.replace('pick', 'edit'))
else:
f.write(line)