Re: [Pyenchant-users] PyEnchant and py2exe
Brought to you by:
rynklly
|
From: Ryan K. <ry...@rf...> - 2006-10-17 05:38:45
|
Hi Chris,
(CC'ing this to the mailing list for posterity)
> How would I ship (myspell) dictionaries with py2exe? I've
> tried just putting the *.dic and *.aff in the same directory
> as the exe and that does not work (fails to find the
> dictionary). I've also tried having a share/enchant/myspell
> in the dir of the exe, that didn't work either :-(
You need to copy both the "share" and "lib" dirs from the enchant
site-packages directory into the dir of the exe. "share" contains the
dictionaries themselves, while "lib" contains the enchant myspell plugin.
From memory, you can use the distutils "data_files" option to achieve
this, or py2exe may have another way of specifying extra files to
include...it's been a long time since I py2exe'd anything.
Please let me know if this doesnt work for you, and I'll have another look.
Cheers,
Ryan
|