Has there been any opportunity to check this change in yet?  I am in
need of this fix; I would be happy to make this small change myself,
but without a build script for the Windows bootloader, I have no way
of testing it.  Any update would be appreciated.

Thank you,
Daniel

On Aug 3, 2:51 pm, Giovanni Bajo <[email protected]> wrote:
> On lun, 2009-08-03 at 14:38 -0700, Daniel wrote:
>
>
>
>
>
> > I'm trying to compile a Windows screensaver using PyInstaller (trunk)
> > and Python 2.6.  On Windows, screensavers are simply normal
> > executables that have a .scr file extension (and are expected to take
> > certain command-line parameters).
>
> > Generally, Windows will run any executable no matter what extension it
> > has, but PyInstaller built EXEs will only execute if the .exe
> > extension is kept intact.  I have noticed that py2exe doesn't have
> > this issue, but I really don't understand how either project works
> > under the hood.
>
> > To clarify, when a PyInstaller-built executable with a non-exe file
> > extension is run, nothing happens - no Windows error message, etc -
> > the program just doesn't launch.
>
> > Does anyone have any idea what could be going on here, and/or point me
> > in the right direction wrt the pyinstaller code base?
>
> Looks like it's due to this code in source/windows/winmain.c:
>
>         p = thisfile+strlen(thisfile) - 4;
>         if (strnicmp(p, ".exe", 4) != 0)
>                 strcat(thisfile, ".exe");
>
> I have absolutely no clue why it insists on adding a .exe extension. It
> doesn't make sense at all. The code has been there before I resurrected
> PyInstaller.
>
> I can try removing it but I'll commit it tomorrow -- I don't have Visual
> Studio handy now.
>
> (Which BTW remembers me that I should really get the bootloader
> compilation fixed! There's absolutely no reason why it still needs VS71
> and VS60; it would work with any VisualStudio or MinGW right now).
> --
> 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