Walnut/Advanced Topics/E Properties File

From Erights

Revision as of 10:48, 29 November 2006 by Mscheffler (Talk)
Jump to: navigation, search

E Properties File

E installations include the props.txt properties file, chock full of information that is occasionally useful. You can access it through the interp object. In this example, we get the home directory for the E installation, which can be useful if you wish to store data in a known location to be shared by multiple E programs:

def ehomePath := (interp.getProps()) ["e.home"]

The properties are stored in a map which can be accessed in the usual manner. For a complete listing of the information in the props.txt file, open yours up and take a look.

Personal tools
more tools