1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-09-18 21:47:23 +00:00
os-autoinst-distri-fedora/needles/gnome/apps/calculator/temp.py
Adam Williamson 87ad2fb63e Add (back) old calculator button needles for Silverblue/flatpak
Silverblue has Calculator as an older-versioned flatpak, so it
still looks like it did in GNOME 42 (blue equals button, lighter
colored number buttons).

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-08-08 17:34:32 -07:00

12 lines
285 B
Python

#!/bin/python
import glob
import shutil
for fn in glob.glob("calc_button*.json"):
basename = fn.split(".")[0]
newjson = f"{basename}-flatpak-20220808.json"
newpng = f"{basename}-flatpak-20220808.png"
shutil.copy2(fn, newjson)
shutil.copy2("/tmp/old.png", newpng)