On Fri, 2010-02-05 at 19:36 +0100, Marcin Krol wrote:
> Giovanni Bajo wrote:
> 
> >>      raise ImportError, "No module named %s" % fqname
> >> ImportError: No module named sqlalchemy
> 
> > Of course, I agree that it's a bad default and should be changed. If you
> > think it's worth it, remove the current directory from sys.path at
> > startup.
> 
> I've done:
> 
> sys.path = [ p for p in sys.path if p.startswith('/usr/lib') ]
> 
> ..at the beginning of the script and the packed binary STILL tries to 
> import all the .py files in the current directory, resulting in above 
> exception.

Try to print sys.path for debugging. It might well be possible that the
entry you want to remove is ".".

-- 
Giovanni Bajo
Develer S.r.l.
http://www.develer.com


-- 
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