Skip to content

Commit

Permalink
change to the cobra path during init (to get git properly
Browse files Browse the repository at this point in the history
  • Loading branch information
tpfau committed Nov 28, 2017
1 parent 02994e6 commit 1ed1b4a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions initCobraToolbox.m
Original file line number Diff line number Diff line change
Expand Up @@ -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']));

Expand Down

0 comments on commit 1ed1b4a

Please sign in to comment.