Skip to content

Commit

Permalink
Old MATLAB versions e.g. R2015b do not seem to always translate addpa…
Browse files Browse the repository at this point in the history
…th('.') to an absolute path
  • Loading branch information
lebarsfa committed Jan 6, 2024
1 parent 03e8368 commit afda67c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hardwarex_init.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
% unloadlibrary('hardwarex');
% at the end (this will not be done automatically, unloadlibrary might fail if all the variables that use types from the library are not removed using clean...).
if not(libisloaded('hardwarex'))
addpath('.');
addpath(pwd); % Old MATLAB versions e.g. R2015b do not seem to always translate addpath('.') to an absolute path.
switch (computer)
case 'PCWIN64'
addpath('x64');
Expand Down
2 changes: 1 addition & 1 deletion hardwarex_setup.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
% MATLAB).
% These files will be necessary for MATLAB 64 bit users that do not have
% Visual Studio (they should be provided in the x64 folder).
addpath('.');
addpath(pwd); % Old MATLAB versions e.g. R2015b do not seem to always translate addpath('.') to an absolute path.
switch (computer)
case 'PCWIN64'
addpath('x64');
Expand Down

0 comments on commit afda67c

Please sign in to comment.