py3: Have the generated launcher scripts use the correct python exe name

This commit is contained in:
Kovid Goyal 2019-04-10 08:26:50 +05:30
parent cbed9a385f
commit f9f3d2b2fc
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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,