> Date: Sun, 25 Nov 2012 17:42:25 +0100 
> From: [email protected] 
> To: [email protected] 
> Subject: Re: [PyInstaller] If PyInstaller EXEs modify PYTHONPATH, then  
> using python via Popen might fail to find builtin modules. Does it? 
>  
> Am 23.11.2012 18:03, schrieb Quentin Crain: 
>  
>      cmd='python -S -c "import random; print random.randint(0,10)"' 
>  
> If you require Python to be installed on the target machine, why do you  
> need PyInstaller then? 
>  
>  
> --  
> Schönen Gruß 
> Hartmut Goebel 
> Dipl.-Informatiker (univ), CISSP, CSSLP 
>  
> Goebel Consult 
> http://www.goebel-consult.de 
>  
> Monatliche Kolumne:  
> http://www.cissp-gefluester.de/2010-01-hinterturen-allen-ortes 
> Blog: http://www.goebel-consult.de/blog/200505010 
>  
> Goebel Consult ist Mitglied bei http://www.7-it.de/
Don't know if this is any help but on a project that I am involved we came up 
with a strategy of using py2exe to build executables for use on the end users 
machines but using python tasks for the development machines - all we do there 
is to have the command be dependant on the "Frozen" state - and for each of the 
external scripts that we need to be able to invoke we also build an executable 
for the end users machine.  By using the zipped library option, in py2exe but I 
am sure that pyInstaller has the equivalent option, each .exe is tiny as they 
all use the common code from the zipped library which includes any extensions 
that are needed.  For one or two of the extension that were only being called 
from code that was evaluated using eval or exe we did have to have a section 
doing something along the lines of:
if False:    import SomeModule    dummy = SomeModule.SomefunctionOrClass()
Just to make sure that the module got included in the library.
Gadget/Steve                                      

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