mozilla-b2g/B2G — pull request #146 by whimboo (2012-10-19 11:53:05+00:00)
Title: Don't assume B2G_HOME is the current folder but take the script location instead

Right now you can only run the emulator from within the b2g folder. With this change you can start it from whatever the current working directory is. Keep in mind that I have also updated tests.sh because it would fail if there is another wrapper script around it. So BASH_SOURCE is the right way to do it.