Re: comparing alternatives to py2exe

2009-11-04 Thread Rüdiger Ranft
Maxim Khitrov schrieb: 1. I don't think cx_freeze supports single exe. I haven't even been able to get it to append the generated library.zip file to the executable using documented options. Other things like .pyd files always seem to be separate. At the same time, singe executables

Re: Win XP: How to hide command window for sub processes?

2009-11-04 Thread Rüdiger Ranft
klausfpga schrieb: On Oct 29, 11:25 am, Rüdiger Ranft _r...@web.de wrote: Thanks Ruediger, I'll try that immediately tomorrow, when working again on a windows host. Good to know, that the Python API supports this. though this feature was not that easy to be found in the doc. Well

Re: Win XP: How to hide command window for sub processes?

2009-10-29 Thread Rüdiger Ranft
klausfpga schrieb: Hi, I have a Python script which wants to start a subprocess and wait for it to finish. However I would like to have NO command window popping up during execution. You need to specify the hide parameter for windows. import subprocess kwargs = {} if

Re: user authorization (with one time login) in a Python desktop application ?

2009-09-30 Thread Rüdiger Ranft
Stef Mientki schrieb: By making use of the one time login on windows, I'm not sure, but I guess the user environment variable USER should hold the vald user, which has probably a one-to-one relation with the SID Environment variables are *very* easy to forge. But since you use windows, you

Weird lambda behavior

2009-04-22 Thread Rüdiger Ranft
Hi all, I want to generate some methods in a class using setattr and lambda. Within each generated function a name parameter to the function is replaced by a string constant, to keep trail which function was called. The problem I have is, that the substituted name parameter is not replaced by the

Re: Re: Weird lambda behavior

2009-04-22 Thread Rüdiger Ranft
Chris Rebert schrieb: On Wed, Apr 22, 2009 at 4:50 AM, Rüdiger Ranft _r...@web.de wrote: Hi all, I want to generate some methods in a class using setattr and lambda. Within each generated function a name parameter to the function is replaced by a string constant, to keep trail which function

get text from rogramms runn by subprocess.Popen immediatetly

2009-04-16 Thread Rüdiger Ranft
Hi all, I need to call some programms and catch their stdout and stderr streams. While the Popen class from subprocess handles the call, I get the results of the programm not until the programm finishes. Since the output of the programm is used to generate a progress indicator, I need a way to

Re: Re: get text from rogramms runn by subprocess.Popen immediatetly

2009-04-16 Thread Rüdiger Ranft
Diez B. Roggisch schrieb: Rüdiger Ranft schrieb: Hi all, I need to call some programms and catch their stdout and stderr streams. While the Popen class from subprocess handles the call, I get the results of the programm not until the programm finishes. Since the output of the programm