Scripter/Snippet/reading a file

try: infile = open(filename, 'r') except: scribus.MessageBox("File Error","Problem trying to open %s." % (file_name), ICON_CRITICAL) sys.exit(1)