Re: A tale of two execs

2009-02-23 Thread aha
Hello All, It occurred to me that I might just want to try copying the subprocess.py installed in a /usr/lib/python24 installation to the directory where I place the scripts that I need to launch my application...I know this was mentioned earlier. Anyway, my application worked under python 2.3 a

Re: A tale of two execs

2009-02-23 Thread aha
I've decided to change the runCmdLine method to Popen. On Feb 23, 4:54 pm, aha wrote: > Hello All, >   So below is my naive attempt at the wrapper, it is only half baked > since I am no master at Interprocess communication... I know that it > is lacking a lot of things comment gr

Re: A tale of two execs

2009-02-23 Thread aha
for and returns the status code of the child process. """ return self.process.wait() def poll(self,): """ Returns -1 if the child process hasn't completed yet, or it's return code otherwise """

A tale of two execs

2009-02-23 Thread aha
Hello All, I am working on a project where I need to support versions of Python as old as 2.3. Previously, we distributed Python with our product, but this seemed a bit silly so we are no longer doing this. The problem that I am faced with is that we have Python scripts that use the subprocess m

Re: Logging in Python

2009-02-10 Thread aha
Sajip wrote: > On Feb 10, 5:50 pm, aha wrote: > > > > > Hello All, > > > I have an application whereloggingmay need to be configured in > > multiple places.  I've used the PythonLoggingFramework for sometime, > > but I'm still not sure how to test ifl

Logging in Python

2009-02-10 Thread aha
Hello All, I have an application where logging may need to be configured in multiple places. I've used the Python Logging Framework for sometime, but I'm still not sure how to test if logging has configured. For example, I have modules A, B, and C. Below is some pseudo code... moduleA class A(

Parsing XML: SAX, DOM, Expat, or Something Else?

2009-01-23 Thread aha
Hello All, I've been charged with developing an XML configuration file format, for one of the applications that my company develops. (Yes, I know it would have been easier to just use the configuration file format as described in RFC 822) While I am finally comfortable with the XML description

Re: Unable to start a process with subprocess Popen()

2008-09-08 Thread aha
On Sep 8, 7:23 am, [EMAIL PROTECTED] wrote: > On Mon, Sep 8, 2008 at 11:50 AM,  <[EMAIL PROTECTED]> wrote: > > Hi, > > > I'm using the subprocess module's Popen() to start a batch file. This > > batch file basically calls an exe which also gets started. > > Unfortunately, this does not produce any

Re: Need formatting suggestion for long strings

2008-09-05 Thread aha
On Sep 5, 3:29 pm, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > On Fri, 5 Sep 2008 14:24:16 -0500, Robert Dailey <[EMAIL PROTECTED]> wrote: > >Hi, > > >I find quite often that I'm writing things like this: > > >raise FatalExcept( "Insufficient number of arguments specified. Exactly {0} > >argum

Re: Determining Processor Vender

2008-09-05 Thread aha
On Sep 5, 3:00 pm, aha <[EMAIL PROTECTED]> wrote: > Dose anyone know of a cross-platform method for determining the vendor > of a processor?  Under linux I can check /proc/cpuinfo.  What I'd like > to be able to do is determine if a processor is AMD or Intel, so that > I

Determining Processor Vender

2008-09-05 Thread aha
Dose anyone know of a cross-platform method for determining the vendor of a processor? Under linux I can check /proc/cpuinfo. What I'd like to be able to do is determine if a processor is AMD or Intel, so that I can use the appropriate numerical libraries for my application. Regards, Aquil -- h

Using Python To Launch Python

2008-07-14 Thread aha
o this one. AHA -- http://mail.python.org/mailman/listinfo/python-list