mirror of
https://github.com/markqvist/Sideband.git
synced 2026-04-27 14:20:38 +00:00
Cleanup
This commit is contained in:
parent
1fe28ae702
commit
41e9b17940
1 changed files with 8 additions and 3 deletions
|
|
@ -38,6 +38,11 @@ def python314_kivy_patch():
|
|||
print("Patching Kivy for Python 3.14 compatibility...")
|
||||
contents = contents.replace(kivy_target_1, kivy_patch_1)
|
||||
if not kivy_patch_1 in contents: fail_patch()
|
||||
with open(target_path, "wb") as fh:
|
||||
fh.write(contents.encode("utf-8"))
|
||||
print("Kivy successfully patched for Python 3.14 compatibility")
|
||||
try:
|
||||
with open(target_path, "wb") as fh:
|
||||
fh.write(contents.encode("utf-8"))
|
||||
print("Kivy successfully patched for Python 3.14 compatibility")
|
||||
|
||||
except Exception as e:
|
||||
print(f"Error while patching Kivy: {e}")
|
||||
fail_patch()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue