When I first wrote my Perforce plugin, I knew Mac users had an issue loading "p4" since their PATH seemed to be ignored, so I added something along the lines of:
command = ''
if(sublime.platform() == "osx"):
command = 'source ~/.bash_profile && '
command += in_command
This thread seems to be talking about the same type of issue: viewtopic.php?f=6&t=2252&p=10085&hilit=bash_profile#p10085
I'm now building a new plugin that uses PHP to execute stuff, and since I just got a Mac I decided to try it on. Unfortunately, once again, ST seems to ignore my ".bash_profile".
Calling "which php" from the Terminal gives me a different answer than calling it from my Python script.
Is there a more elegant solution than what I initially did for my Perforce plugin or should I just stick to it?