diff --git a/scripts/doc/append-xml-tags.py b/scripts/doc/append-xml-tags.py
index bd7b7f995568cdc1aaf5206c89b47f20e4815078..cfeedec168b6c764161cba31317cbf61c79b5680 100755
--- a/scripts/doc/append-xml-tags.py
+++ b/scripts/doc/append-xml-tags.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 
 # This script augments the parameter documentation pages by information
 # such as if they are required/optional, their data typ and in which
diff --git a/scripts/doc/check-project-params.py b/scripts/doc/check-project-params.py
index a96a74e90e6df32f19934d89df831e746e6f2173..54c4b397a491c4945ec72239619b683b2359191b 100755
--- a/scripts/doc/check-project-params.py
+++ b/scripts/doc/check-project-params.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 
 # This script actually generates the QA page.
 # For its usage see generate-project-file-doc-qa.sh
diff --git a/scripts/doc/linked-xml-file.py b/scripts/doc/linked-xml-file.py
index b0ebc07e6ca6c8a28e97bb77de25b46881c21892..af0ebceae664652c1a5a8765f5b727cc76dc69d0 100755
--- a/scripts/doc/linked-xml-file.py
+++ b/scripts/doc/linked-xml-file.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 
 # This script traverses the DATADIR (where the ctest input data is) and creates
 # out of every prj file found a file in a subdirectory of DOCAUXDIR.
diff --git a/scripts/doc/normalize-param-cache.py b/scripts/doc/normalize-param-cache.py
index fb4f0491208deda9e8eb6ad555e375e5f3ef9a34..d4fdfeec1a76b5c5ec24683e45ef4a567b234790 100755
--- a/scripts/doc/normalize-param-cache.py
+++ b/scripts/doc/normalize-param-cache.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 
 # This script takes the output of get-project-params.sh on stdin
 # and transforms it into a tabular representation for further
diff --git a/scripts/doc/print23.py b/scripts/doc/print23.py
index cdc46377e26438c347b97e7f949655169c389ec7..e3b74f737fc8cdc62a648af6ddc0b101e89df6a2 100644
--- a/scripts/doc/print23.py
+++ b/scripts/doc/print23.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 
 # Print statement that behaves the same for python 2 and 3.
 # E,g, print_(1.0, 2, "5") will always print the string "1.0 2 5".