User forums > Using Code::Blocks

Using EnvVar

(1/2) > >>

ironhead:
I've set the PATH environment to 'PATH=%PATH%;C:\NewPath' variable via 'Settings > Environment > Environment Variables' which as I understand it should set the variable on startup.  However, when I close C::B and restart it, the PATH variable is not updated (i.e. C:\NewPath is not in %PATH%).  Is there something I have to do to have these environment variables set on startup?

stahta01:

--- Quote from: ironhead on June 30, 2010, 03:36:20 pm ---I've set the PATH environment to 'PATH=%PATH%;C:\NewPath' variable via 'Settings > Environment > Environment Variables' which as I understand it should set the variable on startup.  However, when I close C::B and restart it, the PATH variable is not updated (i.e. C:\NewPath is not in %PATH%).  Is there something I have to do to have these environment variables set on startup?

--- End quote ---

The EnvVar plugin is for changing the Environment Variables for just inside Code::Blocks; if you want the changes to be permanent change them the normal way for the OS. Note, most commands ran from Code::Blocks should also see the modified Environment Variables.

Tim S.

ironhead:

--- Quote from: stahta01 on June 30, 2010, 04:24:33 pm ---The EnvVar plugin is for changing the Environment Variables for just inside Code::Blocks; if you want the changes to be permanent change them the normal way for the OS. Note, most commands ran from Code::Blocks should also see the modified Environment Variables.
--- End quote ---

Agreed.  I need PATH to be temporarily modified when running a pre-build command, and I would like to not have to modify the system PATH.  My expectations would be that if the PATH variable is set on C::B startup, the modified PATH should be used for the pre-build command and not affect applications run outside of C::B.

stahta01:
The Devs are going to need more info; OS Version CB Version etc.
This assumes they think it is a problem.

If you get no fix in a week; post the bug in the correct site.

Tim S.

ironhead:
I'm running XP SP3 with C::B 10.05.

Navigation

[0] Message Index

[#] Next page

Go to full version