File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def _gen_matlab_command(self, argstr, script_lines):
191191
else:
192192
prescript.insert(0, "fprintf(1,'Executing code at %s:\\n',datestr(now));")
193193
for path in paths:
194-
prescript.append("addpath('%s');\n" % path)
194+
prescript.append("if ~(ismcc || isdeployed) addpath('%s'), end;\n" % path)
195195

196196
if not mfile:
197197
# clean up the code of comments and replace newlines with commas

0 commit comments

Comments
 (0)