SPRING_DATADIR

SPRING_DATADIR

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

SPRING_DATADIR

Post by Argh »

What does this mean, in a practical sense?
SPRING_DATADIR environment variable overrides ALL other ways to set data directories
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: SPRING_DATADIR

Post by Auswaschbar »

That the directorie(s) specified in SPRING_DATADIR environment variable are checked first when looking for data.

Because the write directory will be the first dir with writing permissions, the engine will choose the one from SPRING_DATADIR if it is writable.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: SPRING_DATADIR

Post by Tobi »

I made the change because SPRING_DATADIR is the only practical way to overrule the data dir setting from e.g. a script that starts spring. (I don't count sed -i in config files as a practical way ;-))

For normal user it doesn't change anything at all.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: SPRING_DATADIR

Post by AF »

Does this affect windows users at all?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: SPRING_DATADIR

Post by Tobi »

Yes, they can override the data directory now too with the SPRING_DATADIR environment variable...
Post Reply

Return to “Engine”