Added all original pyside unit tests to the shiboken version.
This commit is contained in:
parent
aa12538d63
commit
9af36fbb64
160 changed files with 6616 additions and 12 deletions
13
tests/util/rename_imports.sh
Executable file
13
tests/util/rename_imports.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
# Rename import statements from .py script to use a specific module name
|
||||
set -e
|
||||
|
||||
if [ $# -lt 3 ]; then
|
||||
echo "Usage: $0 <old_name> <new_name> <directories...>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
old_name=$1; shift
|
||||
new_name=$1; shift
|
||||
|
||||
find "$@" -name "*.py" -exec sed -ri "s/(import|from) $old_name/\1 $new_name/" '{}' \;
|
||||
Loading…
Add table
Add a link
Reference in a new issue