Subject: Re: defining SPARKYHOME
From: Thomas Goddard
Date: Aug 11, 2006



Hi Monika,

How to set the SPARKYHOME environment variable depends on what operating
system you are using.

On Windows you use Control Panel / Performance and Maintenance /
System / Advanced tab / Environment Variables.

On Mac OS X you put the environment variable in your home directory
in .MacOSX/environment.plist as described here:

http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html#//apple_ref/doc/uid/20002093-113982

On Linux you would set SPARKYHOME in your ~/.bashrc shell startup file.

If you are the only one using Sparky on this machine there is an easy
way that works on all operating systems. Edit the Sparky startup script

sparky/bin/sparky (Mac or Linux)

or
sparky/bin/sparky.bat (Windows)

and add a line like

setenv SPARKYHOME /data/Sparky

or on Windows

set SPARKYHOME=c:dataSparky

Add this line near the top, before the script calls Python which starts up
the real Sparky executable. Anyone who starts Sparky will then have the
same default Sparky home directory, controlling what the Open / Save
dialogs show the first time they are used.

Tom