diff --git a/tailbone/views/batch/core.py b/tailbone/views/batch/core.py index 150dd560..e8e84353 100644 --- a/tailbone/views/batch/core.py +++ b/tailbone/views/batch/core.py @@ -830,7 +830,9 @@ class BatchMasterView(MasterView): subcommand=None, subcommand_args=None): # construct command - cmd = [os.path.join(sys.prefix, 'bin/{}'.format(command))] + prefix = self.rattail_config.get('rattail', 'command_prefix', + default=sys.prefix) + cmd = [os.path.join(prefix, 'bin/{}'.format(command))] for path in self.rattail_config.files_read: cmd.extend(['--config', path]) if username: @@ -846,6 +848,7 @@ class BatchMasterView(MasterView): cmd.extend(subcommand_args) # run command in subprocess + log.debug("launching command in subprocess: %s", cmd) subprocess.check_call(cmd) def action_subprocess_thread(self, batch_uuid, port, username, action, progress):