From 1ed1b4ac947f1161377b2e02552f11b4212e433d Mon Sep 17 00:00:00 2001 From: Thomas Pfau Date: Tue, 28 Nov 2017 11:28:55 +0100 Subject: [PATCH] change to the cobra path during init (to get git properly --- initCobraToolbox.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/initCobraToolbox.m b/initCobraToolbox.m index cc993d6fd2..4e40ffd23c 100644 --- a/initCobraToolbox.m +++ b/initCobraToolbox.m @@ -92,9 +92,10 @@ function initCobraToolbox() % retrieve the current directory currentDir = pwd; - % define the root path of The COBRA Toolbox + % define the root path of The COBRA Toolbox and change to it. CBTDIR = fileparts(which('initCobraToolbox')); - + cd(CBTDIR); + % add the external install folder addpath(genpath([CBTDIR filesep 'external' filesep 'install']));