py2exe problem

I tried making an exe, but got this strange error... has it to do with the skellington or did I do smth wrong?
C:\simono-0.4\dist>run_game.exe
Traceback (most recent call last):
  File "run_game.py", line 3, in ?
NameError: name '__file__' is not defined
so it's already grinding to an halt in run_game?? other people of succesfully provided exe... so what's my mistake?

(log in to comment)

Comments

It looks like you have an old copy of the skellington. The version of run_game.py currently available from the help page has the following code in it:
try:
    libdir = os.path.abspath(os.path.join(os.path.dirname(__file__), 'lib'))
    sys.path.insert(0, libdir)
except:
    # probably running inside py2exe which doesn't set __file__
    pass
ah nice, got it