1diff --git a/src/extension/implementation/script.cpp b/src/extension/implementation/script.cpp
2index bc6c0ed845..181467834d 100644
3--- a/src/extension/implementation/script.cpp
4+++ b/src/extension/implementation/script.cpp
5@@ -82,10 +82,10 @@ const std::map<std::string, Script::interpreter_t> Script::interpreterTab = {
6 { "python", {"python-interpreter", {"pythonw" }}},
7 #elif defined __APPLE__
8 { "perl", {"perl-interpreter", {"perl" }}},
9- { "python", {"python-interpreter", {"python3" }}},
10+ { "python", {"python-interpreter", {"@python3@" }}},
11 #else
12 { "perl", {"perl-interpreter", {"perl" }}},
13- { "python", {"python-interpreter", {"python3", "python" }}},
14+ { "python", {"python-interpreter", {"@python3@" }}},
15 #endif
16 { "python2", {"python2-interpreter", {"python2", "python" }}},
17 { "ruby", {"ruby-interpreter", {"ruby" }}},