Skip to content

Commit

Permalink
Ensure at max only one instance is replaced for PyQt6.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexhuszagh committed Sep 8, 2024
1 parent 207e1b6 commit d8ee135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def fix_qt6_import(compiled_file):

with open(compiled_file, 'r', encoding='utf-8') as file:
text = file.read()
text = text.replace('PySide6', 'PyQt6')
text = text.replace('PySide6', 'PyQt6', count=1)
with open(compiled_file, 'w', encoding='utf-8') as file:
file.write(text)

Expand Down

0 comments on commit d8ee135

Please sign in to comment.