initialize.m: make string operation compatible with PC
1 unresolved thread
1 unresolved thread
PC systems use a backslash as file separator
Merge request reports
Activity
added bug label
16 16 % along with Dynare. If not, see <http://www.gnu.org/licenses/>. 17 17 18 18 % Get the path to the dseries toolbox. 19 dseries_src_root = strrep(which('@dseries/initialize.m'),'@dseries/initialize.m',''); 19 if ispc() 20 dseries_src_root = strrep(which('@dseries\initialize.m'),'@dseries\initialize.m',''); 21 else 22 dseries_src_root = strrep(which('@dseries/initialize.m'),'@dseries/initialize.m',''); 23 end @sebastien No good reason. I considered that option, but went for an if-clause, because I know the old code works on the server and the new code on my machine. Testing the behavior of
filesep
would have been more complicated. But feel free to ignore this PR and go for thefilesep
version.@JohannesPfeifer ans @sebastien I’ll do it.
assigned to @stepan-a
Superseded by e232e940
Please register or sign in to reply