title: cx_freeze ImportError when executing file
body: <p>The program is designed to capture the title bar of the users foreground window and append that title along with the datetime to a log file.</p>
  
  <p>When I run this code on my computer it works, however when I run the executable on another computer I get the error you can see below:</p>
  
  <p>Python file:</p>
  
  <pre><code>from win32gui import GetForegroundWindow, GetWindowText
  from datetime import datetime
  from time import sleep
  from os.path import join
  
  log_path = r'C:\Office Viewer\OV_Log.txt'
  
  while True:
  
      window_name = GetWindowText(GetForegroundWindow())
  
      current_time = datetime.strftime(datetime.now(), '%Y/%m/%d_%H:%M:%S, ')
  
      txt = join('\n',current_time, window_name)
  
      with open(log_path, 'a') as log_file:
          log_file.write(txt)
  
      sleep(5)
  </code></pre>
  
  <p>setup.py:</p>
  
  <pre><code>import sys
  from cx_Freeze import setup, Executable
  
  base = None
  if (sys.platform == "win32"):
      base = "Win32GUI"
  
  #build_exe_options = {'include_files': ['re']}
  build_exe_options = {"packages": ["re"]}
  
  setup(  name = "Foreground Window Montior",
          version = "0.1",
          description = "Query the foreground window.",
          options = {'build_exe': build_exe_options},
          executables = [Executable("actWin_Query.py", base=base)])
  </code></pre>
  
  <p>Error is:</p>
  
  <p><img src="https://i.stack.imgur.com/sjMqv.png" alt="enter image description here"></p>
  
  <p>Can anyone recommend what I need to do to solve this issue please?</p>
  
  <p>The issue appears to be that C:\Python33\ etc... doesn't exist on the other computer.  How can I make the program be completely dependent from the directory the .exe is housed in?</p>