dirlist = {'param'};
dirname = fileparts (mfilename ('fullpath'));

if ~exist (fullfile (dirname, 'inst'), 'dir')
  %% Run this if the package is installed
  for ii=1:numel(dirlist)
     addpath (fullfile (dirname, dirlist{ii}), '-end')
  end
else
  %% Run this if we are testing the package without installation
  addpath (fullfile (dirname, 'inst'))
  for ii=1:numel(dirlist)
    addpath (fullfile (dirname, 'inst', dirlist{ii}))
  end
end

clear dirlist dirname
