#!/usr/bin/python from Pictar import * the_pictar = Pictar() """ if (os.path.isdir(target_dir) == False): print "Error: The given directory, \"" + target_dir + "\", is invalid.\n" sys.exit(FAILURE) """ image_paths = the_pictar.GetItemPaths() image_data = the_pictar.GetItemData(image_paths) page_data = the_pictar.GetPageData(image_data) outfile = the_pictar.WritePage(page_data) the_pictar.LaunchBrowser(outfile)