Scripter/Snippet/reading a file

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