Mercurial > libervia-backend
comparison setup.py @ 1115:b56374a1f6d6
misc: daemon mode refactoring:
- there is no more daemon mode disctinction between local and installed version
- sat is launched as daemon by default, use "sat fg" to launch it foreground
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 20 Aug 2014 23:45:21 +0200 |
parents | 8e15eeb3cfc3 |
children | e89bd3a26c86 |
comparison
equal
deleted
inserted
replaced
1114:7293233970ab | 1115:b56374a1f6d6 |
---|---|
63 Mainly change the paths""" | 63 Mainly change the paths""" |
64 sh_buffer = "" | 64 sh_buffer = "" |
65 run_dir = os.path.dirname(self.sh_script_path) | 65 run_dir = os.path.dirname(self.sh_script_path) |
66 with open(self.sh_script_path, 'r') as sh_file: | 66 with open(self.sh_script_path, 'r') as sh_file: |
67 for ori_line in sh_file: | 67 for ori_line in sh_file: |
68 if ori_line.startswith('DAEMON='): | 68 if ori_line.startswith('TAP_PATH='): |
69 dest_line = 'DAEMON=""\n' # we want to launch sat as a daemon | |
70 elif ori_line.startswith('TAP_PATH='): | |
71 dest_line = 'TAP_PATH="%s/"\n' % run_dir | 69 dest_line = 'TAP_PATH="%s/"\n' % run_dir |
72 elif ori_line.startswith('PYTHON='): | 70 elif ori_line.startswith('PYTHON='): |
73 dest_line = 'PYTHON="%s"\n' % sys.executable | 71 dest_line = 'PYTHON="%s"\n' % sys.executable |
74 else: | 72 else: |
75 dest_line = ori_line | 73 dest_line = ori_line |