From 34174b65ce2f9385448edd3dbe92c07c151389f5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?=
 <stephane.adjemian@univ-lemans.fr>
Date: Tue, 16 May 2017 17:26:12 +0200
Subject: [PATCH] Fixed path issue introduced in previous merge.

---
 src/initialize_dseries_toolbox.m | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/initialize_dseries_toolbox.m b/src/initialize_dseries_toolbox.m
index 41aca89..31060c8 100644
--- a/src/initialize_dseries_toolbox.m
+++ b/src/initialize_dseries_toolbox.m
@@ -62,16 +62,16 @@ cd([dseries_src_root '/../externals/x13'])
 installx13();
 cd(opath);
 
+% Set path
+P = cellfun(@(c)[dseries_src_root(1:end-1) c], p, 'uni', false);
+addpath(P{:});
+
 % Add matlab-fame-io (fame connector toolbox) if available.
 if exist([dseries_src_root '/modules/matlab-fame-io'])
-    p{end+1} = '/modules/matlab-fame-io';
+    addpath([dseries_src_root '/modules/matlab-fame-io']);
     if exist([dseries_src_root '/modules/matlab-fame-io/locals.m'])
         initialize_fame_toolbox();
     else
         disp('matlab-fame-io submodule is not properly configured!')
     end
-end
-
-% Set path
-P = cellfun(@(c)[dseries_src_root(1:end-1) c], p, 'uni', false);
-addpath(P{:});
\ No newline at end of file
+end
\ No newline at end of file
-- 
GitLab