On Fri, 2010-02-05 at 19:24 +0100, Marcin Krol wrote:
> Giovanni Bajo wrote:
> > On Fri, 2010-02-05 at 17:38 +0100, Marcin Krol wrote:
> >> Linux RH [17:35] root /var/www/html # ./cssh
> 
> > PyInstaller doesn't prevent importing files outside the package. This
> > makes it easy to handle third-party plugins and the link.
> > 
> > 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.
> 
> Thanks, I will, but...
> 
> The "not preventing importing" part I understand. But why is the packed 
> binary actively trying to import .py files in the current directory is 
> the part I don't understand? After all, my script when not packed is not 
> trying to do that?
> 
> I'm not saying this should be changed. I'm trying to understand what the 
> heck this packed binary is doing.

I'm not sure I understand your question.

The traceback you showed us says that line 19 of your bootstrap script
does an "import warnings". Because of the way the import hooks work,
PyInstaller looks in the current directory and finds a warnings.py in
there.

What is exactly not clear?

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