On Fri, Jun 10, 2011 at 11:31 AM, Tim Chase
<python.l...@tim.thechases.com> wrote:
> On 06/10/2011 12:58 PM, Mark Phillips wrote:
>>
>> How do I write my script so it picks up argument from the
>> output of commands that pipe input into my script?
>
> You can check
>
>  if os.isatty(sys.stdin):  # <-- this check

Any reason for that over sys.stdin.isatty()?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to