--- /dev/null
+
+# Run this only if the package is installed
+if (! exist (fullfile (fileparts (mfilename ("fullpath")), "inst"), "dir"))
+dirlist= {"Utilities","DDGOX","ThDDGOX","QDDGOX","METLINES","DDGOXT"};
+
+for ii=1:length(dirlist)
+rmpath ( [ fileparts( mfilename("fullpath")) "/" dirlist{ii}])
+end
+end