Changed the install script to consider the Python minor version for the script generation on macOS. eric7

Thu, 12 Dec 2024 11:42:04 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 12 Dec 2024 11:42:04 +0100
branch
eric7
changeset 11092
e2aaf07ef8fd
parent 11091
3a1ba42ac50a
child 11093
e8932a99beb4

Changed the install script to consider the Python minor version for the script generation on macOS.

scripts/install.py file | annotate | diff | comparison | revisions
--- a/scripts/install.py	Wed Dec 11 18:12:50 2024 +0100
+++ b/scripts/install.py	Thu Dec 12 11:42:04 2024 +0100
@@ -305,9 +305,10 @@
     # Mac OS X
     elif sys.platform == "darwin":
         major = sys.version_info.major
-        pyexec = "{0}/bin/pythonw{1}".format(sys.exec_prefix, major)
+        minor = sys.version_info.minor
+        pyexec = f"{sys.exec_prefix}/bin/pythonw{major}.{minor}"
         if not os.path.exists(pyexec):
-            pyexec = "{0}/bin/python{1}".format(sys.exec_prefix, major)
+            pyexec = f"{sys.exec_prefix}/bin/python{major}.{minor}"
         wname = wfile
         wrapper = (
             """#!/bin/sh\n"""

eric ide

mercurial