Environment dependency

What it says on the tin: a place to discuss proposed new features.
Post Reply
milacao
Goblin
Posts: 231
Joined: Thu May 08, 2008 10:39 am
Location: Barcelona, Spain

Environment dependency

Post by milacao »

I work with Ogre both under Linux and Windows, and it's really annoying to have to change files like plugins.cfg, where there are absolute paths, each time there is an update in our SVN. For instance, I would suggest, for plugins.cfg something like:

Code: Select all

PluginFolder=__HOME__/svn/project/lib
where __HOME__ would be an Ogre recognizable variable that would mean $HOME (Linux) or %HOMEPATH% (Windows).
So, I think introducing some interesting environment variables may be helpful.

Cheers.
See http://www.giffgaff.com, the new people-powered brand new mobile operator!
User avatar
xadhoom
Minaton
Posts: 973
Joined: Fri Dec 28, 2007 4:35 pm
Location: Germany
x 1

Re: Environment dependency

Post by xadhoom »

I see your point but as shortcut you could also use relative pathes...
milacao
Goblin
Posts: 231
Joined: Thu May 08, 2008 10:39 am
Location: Barcelona, Spain

Re: Environment dependency

Post by milacao »

Yes, I know. Perhaps HOME variable is not the best example. Anyway, it was just a suggestion :-)
See http://www.giffgaff.com, the new people-powered brand new mobile operator!
User avatar
Game_Ender
Ogre Magi
Posts: 1269
Joined: Wed May 25, 2005 2:31 am
Location: Rockville, MD, USA

Re: Environment dependency

Post by Game_Ender »

You could do what I do and not use plugins.cfg. I use my own config file and added environment variable based replacement for just this reason.
Post Reply