dirlist        = {"Utilities","DDG","DDN"};

dir = fileparts (mfilename ("fullpath"));

if (! exist (fullfile (dir, "inst"), "dir"))
  ## Run this if the package is installed
  for ii=1:length(dirlist)
    addpath ( [ canonicalize_file_name([dir "/.."]) "/" dirlist{ii}])
  endfor
else
  ## Run this if we are testing the package without installation        
  for ii=1:length(dirlist)
    addpath ([ canonicalize_file_name(dir) "/inst/" dirlist{ii}])
  endfor
endif

warning ("off", "Octave:fopen-file-in-path");
warning ("off", "Octave:load-file-in-path");
clear dirlist dir
