Advertisement
Guest User

py2exe pyodbc import error

a guest
Feb 6th, 2013
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.73 KB | None | 0 0
  1. from distutils.core import setup
  2. import sys
  3. import py2exe
  4.  
  5. # if no arguments
  6. if len(sys.argv) == 1:
  7.      sys.argv.append('py2exe')
  8.      sys.argv.append('-q')
  9.  
  10. setup(
  11.     console = [{'script': 'AutoRecon.py'}],
  12.     zipfile = None,
  13.     data_files=[('',
  14.                  ['defaults.cfg'])
  15.                 ],
  16.     name='Test',
  17.     version='1.0.0',
  18.     options = {
  19.                'py2exe':{
  20.                          "packages":"encodings",
  21.                          'includes':['datetime', 'decimal', 'pyodbc'],
  22.                          'bundle_files':2,
  23.                          'optimize':2
  24.                      }
  25.                },
  26.     py_modules = ['Booking', 'FaultBookingMailer', 'FaultBookings', 'ProviderBookings']
  27. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement