Re: No file from stdin

2007-05-25 Thread Tartifola
Hi, > On May 24, 9:48 am, Tartifola <[EMAIL PROTECTED]> wrote: > > Hi, > > suppose a script of python is waiting for a file from the stdin and none > > is given. How can I make the script to stop and, for example, print an > > error message? > > > > Sorry for the n00b question and thanks > > I'

Re: No file from stdin

2007-05-24 Thread Matimus
On May 24, 9:48 am, Tartifola <[EMAIL PROTECTED]> wrote: > Hi, > suppose a script of python is waiting for a file from the stdin and none > is given. How can I make the script to stop and, for example, print an > error message? > > Sorry for the n00b question and thanks I'm not exactly sure what y

Re: No file from stdin

2007-05-24 Thread aspineux
On 24 mai, 18:48, Tartifola <[EMAIL PROTECTED]> wrote: > Hi, > suppose a script of python is waiting for a file from the stdin and none > is given. How can I make the script to stop and, for example, print an > error message? > > Sorry for the n00b question and thanks import sys import os.path if