Thanks. I've been using print to debug but it seems I didn't
understand what the desired input to hiddenimports should look like.
In the example you gave, "dir(sqlalchemy.databases)" didn't make any
sense to me. I know have it working with the hook contents below.
Thanks for your help! Please add this to the hooks directory for
future releases.
hooks/hook-sqlalchemy.py:
---
import sqlalchemy.databases
hiddenimports = []
for n in sqlalchemy.databases.__all__:
hiddenimports.append("sqlalchemy.databases." + n)
---
Greg
On Mar 26, 11:44 am, Giovanni Bajo <[EMAIL PROTECTED]> wrote:
> On 3/26/2007 6:40 PM, Ralf Schmitt wrote:
>
>
>
> > On 3/26/07, *Greg Copeland* <[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>> wrote:
>
> > I took your example and ran with it since I understood what you were
> > trying to do. I now have:
> > import os
> > import glob
> > import sqlalchemy.databases
> > hiddenimports = []
> > for f in
> > glob.glob(os.path.join ( os.path.dirname(
> > sqlalchemy.databases.__file__ ),
> > "*.py" ) ):
> > f = os.path.basename(f)
> > f = os.path.splitext(f)[0]
> > if f != "__init__":
> > hiddenimports.append(f)
>
> > You're appending filenames, not modulenames!
>
> and you can use "print" to debug these stuff, the output will be shown
> by Build.py.
> --
> Giovanni Bajo
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---