[Openmcl-devel] Can't access Interface Database files from application bundle

David Steuber david at david-steuber.com
Sat Jan 29 14:53:37 PST 2005

On Jan 29, 2005, at 3:59 PM, Gary Byers wrote:

> This setup ordinarily happens when a saved image starts up; you can
> do it later by doing something like:
> (ccl::setenv "CCL_DEFAULT_DIRECTORY" "/what/it/should/be/" t)
> (ccl::init-logical-directories)

After reading this, I did some more experimentation.  If I have a copy 
of the ccl folder in my application bundle in the Contents/Resources/ 
folder, then having (ccl::init-logical-directories) as a top level form 
causes the loaded image to be able to find the CDB files there with no 
problem.  An alias does not seem to work.  For some reason, an alias 
does not cause a trailing slash to appear in the pathname returned by 

The image I use in my application bundle is created this way:

(ccl::save-application image-name :toplevel-function #'main)

Does this break things?  I'm just wondering why I need 
init-logical-directories for my saved image when OpenMCL doesn't seem 
to need it when started from the openmcl shell script.


More information about the Openmcl-devel mailing list