eric7/Plugins/VcsPlugins/vcsGit/git.py

branch
eric7
changeset 9016
6f079c524e99
parent 8881
54e42bc2437a
child 9153
506e35e424d5
--- a/eric7/Plugins/VcsPlugins/vcsGit/git.py	Sun Apr 03 17:23:31 2022 +0200
+++ b/eric7/Plugins/VcsPlugins/vcsGit/git.py	Mon Apr 04 17:43:43 2022 +0200
@@ -25,6 +25,7 @@
 
 from .GitDialog import GitDialog
 
+import Globals
 import Utilities
 import Preferences
 
@@ -1832,7 +1833,8 @@
         
         import sys
         editor = sys.argv[0].replace(".py", "_editor.py")
-        env = {"GIT_EDITOR": "{0} {1}".format(sys.executable, editor)}
+        env = {"GIT_EDITOR": "{0} {1}".format(
+            Globals.getPythonExecutable(), editor)}
         
         args = self.initCommand("commit")
         
@@ -3221,7 +3223,8 @@
         
         import sys
         editor = sys.argv[0].replace(".py", "_editor.py")
-        env = {"GIT_EDITOR": "{0} {1}".format(sys.executable, editor)}
+        env = {"GIT_EDITOR": "{0} {1}".format(
+            Globals.getPythonExecutable(), editor)}
         
         args = self.initCommand("cherry-pick")
         args.append("--continue")

eric ide

mercurial