[ic] Find out where the catalog is installed

Kevin Walsh interchange-users@interchange.redhat.com
Wed Feb 20 22:38:01 2002


> Is there any variable in interchange that I can use to
> get the base folder of the current catalog?
> For example, I have a catalog called tools2, it is
> located at /usr/data/tools2
> 
> So, how can I use from method to know current catalog
> in at /usr/data/tools2 in interchange?
> 
You could use this in some way:

    [calc] $Config->{VendRoot}; [/calc]

Why would your catalogue need that information?  All file operations
are performed from at the catalogue's VendRoot directory anyway, so
you should use relative file names.  For instance, instead of
something like "/usr/data/tools2/tmp/filename", you should just use
"tmp/filename".

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/