Error Output Redirection and Program Termination : System Error « System « Python






Error Output Redirection and Program Termination

Error Output Redirection and Program Termination
import sys


sys.stderr.write('Warning, log file not found starting a new one\n')

#The most direct way to terminate a script is to use "sys.exit()". 

           
       








Related examples in the same category