Cleanup subprocess generation

This commit is contained in:
Brett Williams
2024-08-03 21:23:25 -05:00
parent b1280ad445
commit dc7f3877b2
4 changed files with 22 additions and 284 deletions

View File

@@ -30,8 +30,15 @@ class AERenderWorker(BaseRenderWorker):
render_settings = self.args.get('render_settings', None)
omsettings = self.args.get('omsettings', None)
command = [self.renderer_path, '-project', self.input_path, '-comp', comp, '-RStemplate',
render_settings, '-OMtemplate', omsettings, '-output', self.output_path]
command = [self.renderer_path, '-project', self.input_path, '-comp', comp]
if render_settings:
command.extend(['-RStemplate', render_settings])
if omsettings:
command.extend(['-OMtemplate', omsettings])
command.extend(['-output', self.output_path])
return command
def _parse_stdout(self, line):

View File

@@ -496,8 +496,12 @@ class SubmitWorker(QThread):
engine = EngineManager.engine_with_name(self.window.renderer_type.currentText().lower())
input_path = engine().perform_presubmission_tasks(input_path)
# submit
result = self.window.server_proxy.post_job_to_server(file_path=input_path, job_list=job_list,
callback=create_callback)
result = None
try:
result = self.window.server_proxy.post_job_to_server(file_path=input_path, job_list=job_list,
callback=create_callback)
except Exception as e:
pass
self.message_signal.emit(result)