Author Topic: Setting PATH for run  (Read 7378 times)

steven

  • Guest
Setting PATH for run
« on: July 06, 2005, 04:59:56 pm »
Hello

Is it possible to set the the PATH environment variable on a per-project basis ?

So that I can run the .exe (containing project-version specific resource files such as ogre.cfg, image.bmp, etc) and use the version-specific library .dll stored in ANOTHER directory.

Of course, I could set the global environment but that would influence every other executable. (Or copy all the .dll in the root project... )

Perhaps a new field in : Project->Set execution parameters...
where you can enter pre-execution command such as (WinXP) :
"set PATH=%PATH%;c:\library"


Thanks

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Setting PATH for run
« Reply #1 on: July 06, 2005, 06:18:38 pm »
You could as well run codeblocks from a batch file *AFTER* setting the path. :)

Anonymous

  • Guest
Setting PATH for run
« Reply #2 on: July 06, 2005, 07:25:07 pm »
Quote from: rickg22
You could as well run codeblocks from a batch file *AFTER* setting the path. :)


Hum.. yes but...
With several project in a workspace (GameEngine_0_1 and GameEngine_0_2) , I usually use different libraries with each engine (Ogre-1_0 for the first and Ogre-1_0_2 for the second).

Doing it this way would affect each project and not per-project.

I "just" hope to run a command before the executable.

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Setting PATH for run
« Reply #3 on: July 06, 2005, 08:12:22 pm »
I'm afraid you'll have to submit a "Feature Request" at sourceforge. The link's on the left of this webpage.