dirlist= {"osc","sole","osc/osc_transient","osc/osc_bc","osc/osc_fem","osc/osc_mobility_models","osc/osc_reaction_models","osc/osc_steady_state","osc/osc_post_process"};
for ii=1:length(dirlist)
  if (! exist (fullfile (fileparts (mfilename ("fullpath")), "inst"), "dir"))
    ## Run this if the package is installed
    rmpath ( [ fileparts( mfilename("fullpath")) "/" dirlist{ii}])
  else
    ## Run this if we are testing the package is installed without installation
    rmpath ( [ fileparts( mfilename("fullpath")) "/inst/" dirlist{ii}])
  end
end
