From 706e9414e85abc23a82df344c98796ea5f7d8e4e Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer <jpfeifer@gmx.de> Date: Tue, 5 Feb 2019 08:57:31 +0000 Subject: [PATCH] initialize.m: make string operation compatible with PC PC systems use a backslash as file separator --- src/@dseries/initialize.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/@dseries/initialize.m b/src/@dseries/initialize.m index 4a42ad2..5d300af 100644 --- a/src/@dseries/initialize.m +++ b/src/@dseries/initialize.m @@ -16,7 +16,11 @@ function initialize(fake) % along with Dynare. If not, see <http://www.gnu.org/licenses/>. % Get the path to the dseries toolbox. -dseries_src_root = strrep(which('@dseries/initialize.m'),'@dseries/initialize.m',''); +if ispc() + dseries_src_root = strrep(which('@dseries\initialize.m'),'@dseries\initialize.m',''); +else + dseries_src_root = strrep(which('@dseries/initialize.m'),'@dseries/initialize.m',''); +end % Check that the x13 binary is available nox13 = false; -- GitLab