Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 54eea07 + 01245ec commit b1ca724Copy full SHA for b1ca724
pymatbridge/pymatbridge.py
@@ -176,10 +176,11 @@ def _preamble_code(self):
176
# suppress warnings while loading the path, in the case of
177
# overshadowing a built-in function on a newer version of
178
# Matlab (e.g. isrow)
179
- return ["old_warning_state = warning('off','all')",
180
- "addpath(genpath('%s'))" % MATLAB_FOLDER,
181
- "warning(old_warning_state)",
182
- "clear old_warning_state"]
+ return ["old_warning_state = warning('off','all');",
+ "addpath(genpath('%s'));" % MATLAB_FOLDER,
+ "warning(old_warning_state);",
+ "clear('old_warning_state');",
183
+ "cd('%s');" % os.getcwd()]
184
185
def _execute_flag(self): # pragma: no cover
186
raise NotImplemented
0 commit comments