title: Python py2exe Not Including `os` Module
body: <p>I have a python program which imports <code>os</code> so that I can retrieve the application's path (i.e. <code>os.path.dirname(os.path.realpath(__file__))</code>). I have been using py2exe to make this python file into an exe, and I have had no issues until I started to use <code>os</code>. Here is the command window (notice it says <code>1 missing Modules</code>):
  <a href="https://i.stack.imgur.com/YIw2Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YIw2Y.png" alt="enter image description here"></a></p>
  
  <p>When I try to open the <code>.exe</code> that gets created, it closes on me immediately. All the other imports seem to work fine, and they are: <code>win32api, win32con, time, msvcrt, win32gui, re</code>. Again, the <code>.exe</code> stops working properly when I import <code>os</code> but the Python project itself works fine. What can I do to fix this? Thanks.</p>