File system path used when running external tools

Hi.

in PhpStorm (PS-117.694) on OSX, 10.7.4
using Tools->Run command
enter command: sh
enter command: echo $PATH

this gives me: /usr/bin:/bin:/usr/sbin:/sbin
(same result with bash)

same for phing

outside phpstorm using bash I have: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/zend/bin

So where does PhpStorm get it's PATH variable from and where to modify it?  

Best Regards

Karsten

5 comments
Comment actions Permalink

Hi,

some configuration files apply only to terminal, for example, ~/.bashrc. Please use this info to configure $PATH globally.

Best regards,
Elena Shaverdova

0
Comment actions Permalink

Hi,

adding the PATH to ~/.MacOSX/environment.plist does the job.
Could not get any of the other solutions to work.

if the file does not exist it can be created with xcode, see above link

Best Regards

Karsten

0
Comment actions Permalink

Cannot get this to work on OSX 10.7.4, cannot access the PATH variables needed in my external tools.

My environment.plist


<dict>

        <key>PATH</key>

        <string>/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin:/Applications/SenchaSDKTools-2.0.0-beta3</string>

        <key>SENCHA_SDK_TOOLS_2_0_0_BETA3</key>

        <string>/Applications/SenchaSDKTools-2.0.0-beta3</string>

</dict>
0
Comment actions Permalink

Hi,

I think you have to restart or logout in order to get it working.
what does the run command "echo $PATH" gives?

Best Regards

Karsten

0
Comment actions Permalink

Hmm, very weird - now it seems all works ok. I need a few more coffees, sorry for false alarm.

0

Please sign in to leave a comment.