pyinstaller/pyinstaller — pull request #1102 by destijl (2014-11-27 03:21:29+00:00)
Title: Fix missing _MEIPASS attribute.

This is a fix for the following error:

Traceback (most recent call last):
File "", line 35, in
AttributeError: 'module' object has no attribute '_MEIPASS'

as discussed previously in http://www.pyinstaller.org/ticket/801

In this patch we fall back on os.path.dirname(sys.executable) when sys._MEIPASS
isn't present.