NTLM authorization - compile into EXE

Jeff Shannon jeff at ccvcorp.com
Wed Apr 3 22:09:40 EST 2002


In article <9b309481.0204031300.70ce3c63 at posting.google.com>, 
mscheuner at hfx.eastlink.ca says...
>
> But under Windows, having an extra command line window open just for
> this NTLM proxy thingie is a bit "annoying" - so I thought I'd compile
> it into an EXE, using Py2EXE. 

Actually, while creating an EXE might have other advantages, it's 
not the right way to go about solving your problem.

The exact way to solve it depends somewhat on how your proxy 
script is being triggered, but the general solution is that you 
need the script to be run by pythonw.exe (a windows executable 
with no visible window) instead of by python.exe (a console 
application).  If you are launching the script directly (through 
a "python NTLMproxy.py" command) then you can simply change that 
command to "pythonw NTLMproxy.py".  If the script is being 
launched indirectly, then you can probably achieve the same 
results by changing your script's extension to .pyw -- I.e., 
"NTLMproxy.pyw".  The registry will recognize that .pyw files are 
used with pythonw.exe and .py files are used with python.exe.

Hope that helps...

-- 

Jeff Shannon
Technician/Programmer
Credit International



More information about the Python-list mailing list