Skip to content

Commit

Permalink
Fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoore authored May 16, 2018
1 parent 6bcac86 commit 9b6832f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/tools/OmeroPy/src/omero/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,10 +698,11 @@ def command(self):
"""
Overrides ProcessI to call MATLAB idiosyncratically.
"""
r = "try, cd('%s'); script; " % self.dir
r += "catch e, disp(e.identifier); disp(e.message); exit(1); "
r += "end, exit(0)"
matlab_cmd = [
self.interpreter, "-nosplash", "-nodisplay", "-nodesktop",
"-r", "try, cd('%s'); script; catch e, disp(e.identifier); disp(e.message); exit(1); end, exit(0)"
% self.dir
self.interpreter, "-nosplash", "-nodisplay", "-nodesktop", "-r", r,
]
return matlab_cmd

Expand Down

0 comments on commit 9b6832f

Please sign in to comment.