title: How can I trick bash to think I ran a script from within the directory where the binary is located?
body: <p>I have a binary (<code>emulator</code> from the <code>Android SDK Tools</code>) that I use frequently. I've added it to my <code>$PATH</code> variable so that I can easily run the command with solely <code>emulator</code>. </p>
  
  <p>However, it turns out that the binary uses relative paths; it complains if I run the script from a different directory. I'd really like to run the command from any folder without having to <code>cd</code> into the directory where the binary lives. Is there any way to get the script/bash into thinking I ran the command from the directory that it's located in?</p>