On Apr 22, 3:04 pm, Giovanni Bajo <[EMAIL PROTECTED]> wrote:
> On 17/04/2007 21.14, pythonista wrote:
>
> > I've added PyEnchant-1.3.0 to my program and cannot get PyInstaller
> > 1.3 to package it.  PyEnchant stores its dictionaries in C:
> > \Python24\Lib\site-packages\enchant\share\enchant\myspell\.  The files
> > in here are plain text files: en_US.dic, en_US.aff, etc.
>
> > If I add them to Analysis, compile() barfs in analyze_script(), while
> > if I add them as DATA or BINARY to COLLECT(), they end up in C:
> > \program files\MyProgram where MyEnchant cannot find them. EXTENSION,
> > PYSOURCE or PYMODULE don't seem suitable either.  Is this possible, or
> > do I need to move to plan B - getting PyEnchant to look elsewhere for
> > its data?
>
> I'm not sure what you are trying to achieve. Do you want to embed the data
> files within the single-file executable, or just put them next to it?
> --
> Giovanni Bajo

PyEnchant wraps Enchant, a spell-checker written in C.  It
automagically finds its dictionaries here:

>dir C:\Python24\Lib\site-packages\enchant\share\enchant\myspell
 Volume in drive C is DRIVE_C
 Volume Serial Number is 98E2-7E10

 Directory of C:\Python24\Lib\site-packages\enchant\share\enchant
\myspell

04/23/2007  08:43 PM    <DIR>          .
04/23/2007  08:43 PM    <DIR>          ..
12/29/2006  08:12 AM            12,869 de_DE.aff
12/29/2006  08:12 AM         1,114,512 de_DE.dic
12/29/2006  08:12 AM            27,375 en_GB.aff
12/29/2006  08:12 AM           526,269 en_GB.dic
12/29/2006  08:12 AM             2,730 en_US.aff
04/15/2007  04:26 PM           695,748 en_US.dic
12/29/2006  08:12 AM            22,092 fr_FR.aff
12/29/2006  08:12 AM         1,173,085 fr_FR.dic
11/25/2005  09:02 AM                78 README.txt
12/29/2006  08:12 AM            18,764 README_de_DE.txt
12/29/2006  08:12 AM             1,438 README_en_GB.txt
12/29/2006  08:12 AM               421 README_en_US.txt
12/29/2006  08:12 AM            22,098 README_fr_FR.txt

I am assuming/hoping that if I can embed the .aff/.dic files in the
single-file executable, PyEnchant will be able to find them using the
iu.py / ZLibArchive mechanism.

If this is not possible, my next step is to investigate PyEnchant/
Enchant to persuade it to look elsewhere for the dictionaries.

TIA, Phil Mayes


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/PyInstaller?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to