I am trying to use a package called virtualenv for Python, which temporarily changes the PATH environment variable to add a certain directory and give convenient access to several executables. My problem is that this doesn't seem to work. The directory gets added to the start of the path as expected, and I can verify this by typing PATH at the prompt, but if I type the name of an exe in that directory, it doesn't run. If I navigate to that directory however, the app will run ok. It seems like Windows is ignoring the altered environment variable, perhaps using what was listed for PATH in the registry (eg. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Path).

Does anybody know what could be causing this? I am running as an administrator on Windows 7.

link|improve this question
Are you trying to execute the application from the same command prompt where you verified the modified PATH, or a different one? – haimg Oct 10 '11 at 18:42
The same one. Literally in the next command in that window. – Kylotan Oct 10 '11 at 18:55
Are you typing the file extension as well? Is the extension listed in %PATHEXT%? – grawity Oct 10 '11 at 19:35
These are .exe files, so the answer is "No" and "Yes" respectively. – Kylotan Oct 10 '11 at 21:05
Will Windows launch any other programs from said folder in the path or is it just that file? Something tells me the path was typed in wrong. – surfasb Oct 10 '11 at 21:28
show 5 more comments
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.