|
From: | Philip Nienhuis |
Subject: | Re: In what stage of OF package loading/unloading are PKG_ADD/PKG_DEL called? |
Date: | Wed, 08 Jan 2014 20:04:44 +0100 |
User-agent: | Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox/25.0 SeaMonkey/2.22.1 |
Carnë Draug wrote:
On 8 January 2014 16:33, PhilipNienhuis <address@hidden> wrote:What I'm after is a way to have the io script dir (in share/octave/packages/io) already/still in Octave's search path while PKG_ADD and PKG_DEL are called, resp. How can that be achieved (reliably)?PKG_ADD and PKG_DEL are not related to pkg. When adding and removing directories to the search path, Octave looks for a PKG_ADD or PKG_DEL script and executes them. When you load a package, pkg simply adds the directories to the paths, it doesn't do anything itself.
That's about as far as I could decipher myself, thanks for confirming my assumptions.
So the question morphs into:- At what moment during package installation are the script directories added to the search path? It looks like having PKG_ADD in the script directory should work, but on my win7 box it doesn't.
The only thing that pkg does is moving PKG_ADD and PKG_DEL files into those directories during the installation of a package.
...and it looks like some other contents is copied into those PKG_ADD/PKG_DEL files as well (forgot where I saw that code, perhaps in load_path.cc).
Philip
[Prev in Thread] | Current Thread | [Next in Thread] |