Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: steven on July 06, 2005, 04:59:56 pm

Title: Setting PATH for run
Post by: steven 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
Title: Setting PATH for run
Post by: rickg22 on July 06, 2005, 06:18:38 pm
You could as well run codeblocks from a batch file *AFTER* setting the path. :)
Title: Setting PATH for run
Post by: Anonymous 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.
Title: Setting PATH for run
Post by: rickg22 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.