mirror of
https://github.com/pythonguis/pythonguis-examples.git
synced 2025-01-27 17:02:56 +08:00
14 lines
528 B
Bash
14 lines
528 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Black the SOURCE files to limit subsequent reformatting (highlights possible issues).
|
||
|
black -l 128 $1
|
||
|
|
||
|
# PyQt6 (built from PySide6) --------------------------------------------------
|
||
|
find $1 -type f -name "*.py" -print0 | xargs -0 sed -i 's/PyQt6/PySide6/g'
|
||
|
find $1 -type f -name "*.py" -print0 | xargs -0 sed -i 's/pyqtSignal/Signal/g'
|
||
|
find $1 -type f -name "*.py" -print0 | xargs -0 sed -i 's/pyqtProperty/Property/g'
|
||
|
find $1 -type f -name "*.py" -print0 | xargs -0 sed -i 's/pyqtSlot/Slot/g'
|
||
|
|
||
|
|
||
|
black -l 128 $1
|