title: py2exe - Create single executable file out of a folder
body: <p>Hello Stackoverflowers,</p>
  
  <p>I have been trying to create a single executable file out of a folder which contains a python script and some other modules and files (note: I am also using Tkinter if that is important). </p>
  
  <p>I have already looked at a <strong>lot</strong> of questions/answers relating to this and tried them but none of them seem to work for me.</p>
  
  <p>Here is what my folder looks like:</p>
  
  <pre><code>python-calendar                #base-folder
  |
  |___apliclient                 #module
  |___httplib2                   #module
  |___oauth2client               #module
  |___uritemplate                #module
  |___client_secrets.json        #used by program.py
  |___program.py                 #my main script
  |___program.dat                #updated by program.py
  </code></pre>
  
  <p>My question is:<br>
  <strong>How can I create a single executable file that groups all these files/folders together into a single, standalone executable file that can be run?</strong></p>
  
  <p>This is what my <code>setup.py</code> file looks like for the <code>py2exe</code> installer at the moment however when I run my executable, nothing happens (both from the folder and from command-line).</p>
  
  <pre><code>from distutils.core import setup
  import py2exe, sys, os
  
  sys.argv.append('py2exe')
  
  setup(
      options = {'py2exe': {'bundle_files': 1, 'compressed': True, "includes" : ['apiclient','httplib2','oauth2client',
                          'uritemplate'] }},
      console = ["program.py"],
      zipfile = None,
      data_files=['client_secrets.json']
  )
  </code></pre>
  
  <p>Any guidance on how to use <code>py2exe</code> for this or any other executable creator would be really helpful. Thank you in advance.</p>