Mercurial > libervia-backend
comparison setup.py @ 473:a11cde0cdf5b
misc: Make the shell launcher use the same python interpreter than setup.py.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 14 Apr 2012 13:53:55 +0200 |
parents | 813a869315dc |
children | 2a072735e459 |
comparison
equal
deleted
inserted
replaced
472:813a869315dc | 473:a11cde0cdf5b |
---|---|
55 for ori_line in sh_file: | 55 for ori_line in sh_file: |
56 if ori_line.startswith('DAEMON='): | 56 if ori_line.startswith('DAEMON='): |
57 dest_line = 'DAEMON=""\n' #we want to launch sat as a daemon | 57 dest_line = 'DAEMON=""\n' #we want to launch sat as a daemon |
58 elif ori_line.startswith('TAP_PATH='): | 58 elif ori_line.startswith('TAP_PATH='): |
59 dest_line = 'TAP_PATH="%s/"\n' % run_dir | 59 dest_line = 'TAP_PATH="%s/"\n' % run_dir |
60 elif ori_line.startswith('PYTHON='): | |
61 dest_line = 'PYTHON="%s"\n' % sys.executable | |
60 else: | 62 else: |
61 dest_line = ori_line | 63 dest_line = ori_line |
62 sh_buffer += dest_line | 64 sh_buffer += dest_line |
63 | 65 |
64 with open(self.sh_script_path,'w') as sh_file: | 66 with open(self.sh_script_path,'w') as sh_file: |