Hi, You're on the right track. You just need to change the dash to an underscore and you should be good to go. The dashes are for the command line but within Python code you must use an underscore instead since dash would represent a subtraction operation. Make sense?
Anthony On Tue, Mar 2, 2010 at 9:47 PM, Lenin Lee <[email protected]> wrote: > Hi, > I'm new to cx_freeze, below is the content of my setup.py: > #!/usr/bin/python > # -*- coding: utf-8 -*- > from cx_Freeze import setup,Executable > includefiles = ['settings.ini'] > includes = [] > excludes = ['Tkinter'] > packages = ['do','khh'] > setup( > name = 'myapp', > version = '0.1', > description = 'A general enhancement utility', > author = 'lenin', > author_email = '[email protected]', > options = > {'build_exe':{'excludes':excludes,'packages':packages,'include-files':includefiles}}, > executables = [Executable('main.py')] > ) > There is a file named 'settings.ini', which is a configuration file of my > application, I just want to let cx_freeze copy it to the directory of the > executables, but when I used the command: > python setup.py build > An error was raised: > error: error in setup script: command 'build_exe' has no such option > 'include-files' > I used the command below : > python setup.py build_exe --help > And it appears that the option include-files exists. > I wonder what's wrong. > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > cx-freeze-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users > > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ cx-freeze-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
