For my program I disable the py2exe log feature by routing output to the
nul-file.
Code:

        if win32 and py2exe:
            sys.stdout = open("nul", "w")
            sys.stderr = open("nul", "w")

This always worked fine.

Today, I received an email from a user with the following error:
IOError: [Errno 2] No such file or directory: 'nul'

Now, I thought the nul-file always existed, shouldn't it?
Is there another way to disable output, if this one fails?

Cheers,
Timo
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to