From f9f3d2b2fc3a86fed27f7cdc9086ebc1d6a738b5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 10 Apr 2019 08:26:50 +0530 Subject: [PATCH] py3: Have the generated launcher scripts use the correct python exe name --- setup/install.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup/install.py b/setup/install.py index 827cc26da6..eba651e975 100644 --- a/setup/install.py +++ b/setup/install.py @@ -12,7 +12,7 @@ from setup import (Command, islinux, isbsd, ishaiku, basenames, modules, functio __appname__, __version__) HEADER = '''\ -#!/usr/bin/env python2 +#!/usr/bin/env python{py_major_version} """ This is the standard runscript for all of calibre's tools. @@ -177,6 +177,7 @@ class Develop(Command): def template_args(self): return { + 'py_major_version': sys.version_info.major, 'path':self.libdir, 'resources':self.sharedir, 'executables':self.bindir,