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'
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
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