On Friday 18 of September 2015 22:20:23 David Cortesi wrote:
> I hope it is the case that one can edit the spec file so:
> 
>     a = Analysis( ... datas=[ ( '../../aspell/dict', 'dict' ) ], .... )
> 
> and the complete folder of dictionary files in the bundle. Also since it
> supports "glob" it should work that:
> 
>     extra_datas = [ ( '/gamedev/sfx/*.mp3' , 'mp3' ),
>                   ( '../../aspell/dict', 'dict' ) ]
>     a = Analysis( ... datas=extra_datas, ... )
> 
> Because those are examples I just put into the manual 😉
> Hmmm. Perhaps I  should test this?

David, update your pyinstaller code. I just fixed 'datas/binaries' to be 
relative to the location of .spec file.

And also verified that datas like this work.

    datas = [('data_dir', 'renamed_data_dir')]

├── build
│   └── helloworld
│       ├── base_library.zip
│       ├── helloworld
│       ├── localpycos
│       │   └── struct.pyo
│       ├── out00-Analysis.toc
│       ├── out00-COLLECT.toc
│       ├── out00-EXE.toc
│       ├── out00-PKG.pkg
│       ├── out00-PKG.toc
│       ├── out00-PYZ.pyz
│       ├── out00-PYZ.toc
│       └── warnhelloworld.txt
├── data_dir
│   ├── a
│   ├── b
│   ├── c
│   ├── d
│   ├── e
│   └── ff
│       ├── g
│       ├── h
│       ├── i
│       ├── j
│       └── k
├── dist
│   └── helloworld
│       ├── array.cpython-34m.so
│       ├── base_library.zip
│       ├── binascii.cpython-34m.so
│       ├── helloworld
│       ├── renamed_data_dir
│       │   ├── a
│       │   ├── b
│       │   ├── c
│       │   ├── d
│       │   ├── e
│       │   └── ff
│       │       ├── g
│       │       ├── h
│       │       ├── i
│       │       ├── j
│       │       └── k
└── helloworld.spec

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to