10 lines
880 B
Python
10 lines
880 B
Python
from pathlib import Path
|
|
import json,shutil
|
|
out=Path(__file__).resolve().parent;private=Path('C:/Users/macbook/.config/investmoz/parques-QA-20261016');old=private.parent/'referencias-economicas-QA-20261016'
|
|
f=json.loads((old/'fixture-private.json').read_text('utf-8'));f.update({'database':'parks_operational_20261016_test','url':'http://127.0.0.1:18532'})
|
|
assert not (private/'fixture-private.json').exists();(private/'fixture-private.json').write_text(json.dumps(f),'utf-8')
|
|
shutil.copy2(out.parent/'investmoz-referencias-economicas-QA-20261016/router-QA.php',out/'router-QA.php')
|
|
http=(out.parent/'investmoz-referencias-economicas-QA-20261016/http_common.py').read_text('utf-8').replace('referencias-economicas-QA-20261016','parques-QA-20261016')
|
|
(out/'http_common.py').write_text(http,'utf-8')
|
|
print('Private QA credentials reused locally; none disclosed; no grants changed')
|