Interchange Developer Resource
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

[ic] Find out where the catalog is installed



> 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
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/


Search for: Sort by: