2 # Find and print the absolute paths of all python source code files
5 REPO_PATH
=$
(dirname $
(dirname $
(realpath
"$0")))
9 SEARCH
+=" active_checks"
20 SEARCH
+=" notifications"
21 # Do not search whole omd/ because it may contain unpacked sub-packages
22 SEARCH
+=" omd/packages/cma"
23 SEARCH
+=" omd/packages/maintenance"
24 SEARCH
+=" omd/packages/omd"
30 # Resolve search paths to real paths before the search for performance reasons
31 REAL_SEARCH
=$
(realpath
$SEARCH)
33 # while read F is used to deal with files containing whitespaces
35 -name .mypy_cache
-prune -o \
36 -name .venv
-prune -o \
37 -name test_docker_parse_node_images.py
-prune -o \
38 -name typeshed
-prune -o \
39 -type f
-print |
sort |
while read F
; do
40 if [[ "$F" == *.py
]] ||
head -n 1 "$F" |
grep -q '^#!.*python$' >/dev
/null
2>&1; then