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 » Tue Feb 10, 2009 3:11 pm

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.
0 x
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

Re: Environment dependency

Post by xadhoom » Tue Feb 10, 2009 3:22 pm

I see your point but as shortcut you could also use relative pathes...
0 x

milacao
Goblin
Posts: 231
Joined: Thu May 08, 2008 10:39 am
Location: Barcelona, Spain

Re: Environment dependency

Post by milacao » Tue Feb 10, 2009 3:31 pm

Yes, I know. Perhaps HOME variable is not the best example. Anyway, it was just a suggestion :-)
0 x
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 » Tue Feb 10, 2009 8:51 pm

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.
0 x

Post Reply