On Sat, Mar 24, 2012 at 11:06:57PM +0100, Juan Pablo Carbajal wrote: > On Sat, Mar 24, 2012 at 10:02 PM, Clemens Buchacher <dri...@aon.at> wrote: > > > > With svn r10045, I now get the following on load instead: > > > > warning: addpath: /home/drizzd/octave/geometry-1.4.2/geom2d: No such file > > or directory > > ... > > > > The problem is that the installation prefix is set only during > > installation, but not during module load. > > > > The only way I can find to determine this path reliably is to create a > > inst/geometry_module_path.m file which returns mfilename("fullpath"). > > How does pkg knows the path to add in any other package when you use > prefix?
The path to the root package directory is added by octave. It is only the subdirectories that are not accessible. I have the following other packages, and none of those seem to add subdirectories to the installation path: audio communications control data-smoothing general image io linear-algebra mechanics miscellaneous nan nnet octcdf optim plot queueing signal specfun splines statistics struct symbolic The io packages seems to parse the installation directory from pkg('list') output for different reasons, but I find this quite ugly: pkglist = pkg ("list"); javapkgind = find (cellfun(@(x) strcmp(x.name, "java"), pkglist), 1, "first"); > I see ocs is having the same problem... probably all multi-packages > using PKG_ADD have it. > > We could use the NEWS file or maybe the documentation to get the > installation path of the package...I do not see how to od it for an > arbitrary prefix in the arch dependent files.... Any reasons why you do not consider the solution I suggested? > > The only way I can find to determine this path reliably is to create a > > inst/geometry_module_path.m file which returns mfilename("fullpath"). Clemens ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev