Skip to content

Commit a1ba35b

Browse files
author
Rajiv Narayan
committed
Fixed order of intialization issue in setup_env
1 parent 659e974 commit a1ba35b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

setup_env.m

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
% Obtain absolute path to this script
44
this_path = fileparts(mfilename('fullpath'));
55

6+
% Environment variable with absolute path to the cmapM base folder
7+
% Referenced within the library using the command cmapmpath
8+
setenv('CMAPMPATH', this_path);
9+
fprintf(1, 'Added cmapM to the search path\n');
10+
611
% Add appropriate paths to matlab environment
712
addpath(genpath(this_path));
813
addpath(genpath(fullfile(this_path, 'bin')));
914

1015
% Download and unpack assets if not already present
1116
download_cmapm_assets;
1217

13-
% Environment variable with absolute path to the cmapM base folder
14-
% Referenced within the library using the command cmapmpath
15-
setenv('CMAPMPATH', this_path);
16-
fprintf(1, 'Added cmapM to the search path\n');

0 commit comments

Comments
 (0)