Skip to content

Commit

Permalink
new: added configuration option to force use of different python bina…
Browse files Browse the repository at this point in the history
…ry than environment one.
  • Loading branch information
vaab committed Nov 22, 2013
1 parent 0c12c0e commit 3b5e766
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sbin/rsted
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ class RstedDaemon(BaseDaemon):
NO_WRITE_PID = True

def run(self):
os.system('python ' + J(app.config.root_path, 'rsted.fcgi'))
os.system('%s %s' % (app.config.get('PYTHON_PATH', 'python'),
J(app.config.root_path, 'rsted.fcgi')))

def print_status(self):
pidexists = os.path.exists(self.pidfile)
Expand Down

0 comments on commit 3b5e766

Please sign in to comment.