Help with Gordon McMillan Installer

Gordon McMillan gmcm at hypernet.com
Mon Feb 11 15:24:17 CET 2002


Matthias Janes wrote:

> 2. Now to my real question : How about when the Data file is in a
> subfolder I tried this:
> 
> a = Analysis(['C:\\_Matthias\\_APPS\\TEST3\\MyApp.py'],
>              pathex=[])
> pyz = PYZ(a.pure)
> exe = EXE( pyz,
>           a.scripts,
>           a.binaries,
> 
>           [('Data.cfg', 'c:/_Matthias/_APPS/TEST3/Data/Data.cfg',
> 'BINARY')],
> 
>           name='MyApp.exe',
>           debug=0,
>           console=1)

The C code doesn't do mkdir, so it can only extract to the exe's
directory.

You can look at support/unpackTK.py as an example of how to 
extract a file in the archive (the code is more complex than
you need, because it's opening an embedded CArchive). Combine
code derived from that with:

  [('Data/Data.cfg', 'c:/_Matthias/_APPS/TEST3/Data/Data.cfg', 'DATA')]

You might want to think seriously about what benefit --onefile
is giving you with an app this complex. A --onedir will be much 
easier to set up, and much faster to start.

-- Gordon
http://www.mcmillan-inc.com/



More information about the Python-list mailing list