misc: Make the shell launcher use the same python interpreter than setup.py.

This commit is contained in:
Emmanuel Gil Peyrot 2012-04-14 13:53:55 +02:00
commit e2dde76146
2 changed files with 4 additions and 1 deletions

View file

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

View file

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