Changeset 47efd70759a2…
Parent c48c554f3e42…
by
Changes to one file · Browse files at 47efd70759a2 Showing diff from parent c48c554f3e42 Diff from another changeset...
@@ -230,8 +230,9 @@ cmdline = ['hgtk.exe', hgcmd]
elif not hasattr(sys, 'frozen'):
pypath = os.path.join(get_prog_root(), 'hgtk')
- if os.path.exists(pypath):
- cmdline = [sys.executable, pypath, hgcmd]
+ pyexe = os.path.join(sys.exec_prefix, 'python.exe')
+ if os.path.exists(pypath) and os.path.exists(pyexe):
+ cmdline = [pyexe, pypath, hgcmd]
if not cmdline:
win32ui.MessageBox('Unable to find ' + pypath, 'run_dialog')
return
|
Loading...