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.
1 parent ab0cdb5 commit 01245ecCopy full SHA for 01245ec
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