allow systemPath to be set via a shell variable
authorClaus Gittinger <cg@exept.de>
Tue, 21 Nov 1995 15:00:30 +0100
changeset 53 00437bd1cfe7
parent 52 c9b78dd69444
child 54 802aa9185941
allow systemPath to be set via a shell variable
smalltalk.rc
--- a/smalltalk.rc	Tue Nov 21 14:51:55 1995 +0100
+++ b/smalltalk.rc	Tue Nov 21 15:00:30 1995 +0100
@@ -28,8 +28,23 @@
 "/***************************************************************
 
 "/
+"/ allow definition of the systemPath from an environment variable
+"/ for example, to only try files in a users home and /usr/local/lib/smalltalk,
+"/ add the following in your shell-profile:
+"/	export STX_SYSTEMPATH=$HOME:/usr/local/lib/smalltalk
+"/ notice, that shell variable names are NOT expanded again in STX_SYSTEMPATH
+"/ Make certain that all relevant files are found along your path - you may see
+"/ funny viewStyles, colors and stupid strings if wrong.
+"/
+|path|
+(path := OperatingSystem getEnvironment:'STX_SYSTEMPATH') notNil ifTrue:[
+    Smalltalk systemPath:(path asCollectionOfSubstringsSeparatedBy:$:)
+].
+
+"/
 "/ map Language variable setting to known and handled
 "/ values:
+"/
 Language == #De ifTrue:[
 	Language := #german
 ].