Salome HOME
Copyright update 2022
[modules/yacs.git] / src / wrappergen / bin / Cpp_Template__SRC / adm / unix / config_files / check_python.m4
index 03e8b8f1cd10085cb2d3342fd46cf31f177d22a6..14b1fc0ff034636a878801be130822b172ba491e 100644 (file)
@@ -1,4 +1,4 @@
-dnl Copyright (C) 2006-2016  CEA/DEN, EDF R&D
+dnl Copyright (C) 2006-2022  CEA/DEN, EDF R&D
 dnl
 dnl This library is free software; you can redistribute it and/or
 dnl modify it under the terms of the GNU Lesser General Public
@@ -51,7 +51,7 @@ AC_DEFUN(CHECK_PYTHON,
   AC_SUBST(PYTHONHOME)
 
   changequote(<<, >>)dnl
-  PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[:3]"`
+  PYTHON_VERSION=`$PYTHON -c "import sys; print(sys.version[:3])"`
   changequote([, ])dnl
   AC_SUBST(PYTHON_VERSION)
 
@@ -73,7 +73,7 @@ AC_DEFUN(CHECK_PYTHON,
   dnl to know which OS Python thinks this is.
 
   AC_SUBST(PYTHON_PLATFORM)
-  PYTHON_PLATFORM=`$PYTHON -c "import sys; print sys.platform"`
+  PYTHON_PLATFORM=`$PYTHON -c "import sys; print(sys.platform)"`
 
   AC_SUBST(PYTHON_SITE)
   AC_ARG_WITH(python-site,