On Thu, 11 May 2006 10:59:19 -0700 (PDT)
Jerome Jabson <[EMAIL PROTECTED]> wrote:
>
> Am I missing some module you are referencing with
> "types"?
>
Hi Jerome,
that's right, try
import types
first.
Michael
___
Tutor maillist - Tutor@python.o
Hi Bo,
Thank you very much for all your help!! But I'm having
some problems with the line of code you recommended:
if isinstance(cmd, types.StringTypes):
cmd = cmd.split(' ')
I'm getting the following error:
NameError: global name 'types' is not defined
As you instructed, I put in the
Hi Bo,
Jerome Jabson åé:
> Hi,
>
> I've been trying to write a wrapper around some
shells
> scripts using the subprocess module. But I'm getting
> errors I quite don't know how to debug. I've only
been
> writing Python for a few months and starting
processes
> are new to me. Here's my code:
>
Jerome Jabson 写道:
> Hi,
>
> I've been trying to write a wrapper around some shells
> scripts using the subprocess module. But I'm getting
> errors I quite don't know how to debug. I've only been
> writing Python for a few months and starting processes
> are new to me. Here's my code:
>
> import os
Hi,
I've been trying to write a wrapper around some shells
scripts using the subprocess module. But I'm getting
errors I quite don't know how to debug. I've only been
writing Python for a few months and starting processes
are new to me. Here's my code:
import os
import re
import subprocess
#