help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Problem with packages


From: Bonzini
Subject: Re: [Help-smalltalk] Problem with packages
Date: Fri, 11 Jan 2002 22:37:54 +0100

> When I try to run blox (Like gst -q /usr/share/smalltalk/blox/Run.st),
> it dies because the "packages" file is not in the current
> directory. If I copy it to the current directory it bombs out because
> of relative paths in the packages themselves...

The packages file is looked for in the image directory.  This has
advantages and disadvantages compared to looking for it in the
kernel directory.

> Any ideas what I'm doing wrong? I'd like to be able to run gst and
> load the standard packages without cding to the smalltalk directory,
> and preferably without cluttering the current directory with packages
> files... Is this possible?

I guess you have an image in the current directory.  Just load the
standard image, load Blox in it with

   PackageLoader fileInPackage: 'Browser'!

and only then save the snapshot with

   ObjectMemory snapshot: Directory home, '/what/you/want.im'!

Paolo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]