Help with Gordon McMillan Installer
Matthias Janes
matthias_j at lycos.com
Sun Feb 10 14:22:08 EST 2002
Gordon McMillan <gmcm at hypernet.com> wrote in message news:<Xns91B167C6A6F08gmcmhypernetcom at 199.171.54.216>...
> Matthias Janes wrote:
>
> [snip]
>
> > I would like to create a onefile exe but I can't figure out how to
> > write the right Makespec.file.
>
> [snip]
>
> > a = Analysis(['C:\\_Matthias\\_APPS\\Installer\\support\\useUnicode.py',
> > 'C:\\_Matthias\\_APPS\\TEST3\\MyApp.py'],
> > pathex=[])
> > pyz = PYZ(a.pure)
> > exe = EXE( pyz,
> > a.scripts,
> > a.binaries,
>
> [('MyData.cfg', 'c:/_Matthias/_APPS/TEST3/Data.cfg', 'BINARY')],
>
> > name='MyApp.exe',
> > debug=0,
> > console=1)
> >
> >
> > I tried different ways to add the Data.cfg file but this is never
> > included in the ONEFILE.EXE instead it is copied extra in a folder.
>
> Inline above. As BINARY, it will be extracted on each run. Of course,
> that makes it effectively read-only.
>
> -- Gordon
> http://www.mcmillan-inc.com/
Thanks a lot Gordon;
This help a little.
1. I had a small problem because you changed the Data.cfg to
MyData.cfg - after that it worked when I put the Data.cfg file in the
root dir.
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)
-------------------------------------------------------------------------------
But the file in the subfolder Data is missing -- CAN Installer also
EXTRACT subfolders correctly and how do i include this folder/files
proberly.
As I work with larger applications I would like to have access to
subfolders and not everything in the root dir.
Any help would be greate.
More information about the Python-list
mailing list