misc: Make the shell launcher use the same python interpreter than setup.py.
This commit is contained in:
parent
a0ac1213cf
commit
e2dde76146
2 changed files with 4 additions and 1 deletions
2
setup.py
2
setup.py
|
|
@ -57,6 +57,8 @@ class custom_install(install):
|
|||
dest_line = 'DAEMON=""\n' #we want to launch sat as a daemon
|
||||
elif ori_line.startswith('TAP_PATH='):
|
||||
dest_line = 'TAP_PATH="%s/"\n' % run_dir
|
||||
elif ori_line.startswith('PYTHON='):
|
||||
dest_line = 'PYTHON="%s"\n' % sys.executable
|
||||
else:
|
||||
dest_line = ori_line
|
||||
sh_buffer += dest_line
|
||||
|
|
|
|||
|
|
@ -15,9 +15,10 @@ if [ $# -eq 1 ];then
|
|||
fi
|
||||
|
||||
NAME='sat'
|
||||
PYTHON='python'
|
||||
|
||||
#We use python to parse config files
|
||||
eval `python<<PYTHONEND
|
||||
eval `"$PYTHON" << PYTHONEND
|
||||
from ConfigParser import SafeConfigParser
|
||||
from os.path import expanduser, join
|
||||
import sys
|
||||
|
|
|
|||
Loading…
Reference in a new issue