title: run executable in current directory mac
body: <p>I write an GUI application in QT running in MAC SIERRA OS the work of this GUI is to execute some scripts and edit some that are located in the directory that the app exists!!</p>
  
  <p>When i run the app from the QT IDE environment the app finds all the scripts and files which are included in the directory and it works as it has to work!</p>
  
  <p>If now I try to run the app just double clicking it in the file explorer(finder in Mac) then the app can't find any script and file that need to find!!</p>
  
  <p>The reason is that when I double click in the app the app is executed always in the "/" directory or in "Users/username" directory and IT IS NOT executed in the directory that it exists!!</p>
  
  <p>Is there some way to change that behavior in this OS???</p>
  
  <p>P.S:the same code works excellent in UBUNTU OS</p>