]> gitweb.michael.orlitzky.com - dead/pictar.git/blob - pictar
Initial commit.
[dead/pictar.git] / pictar
1 #!/usr/bin/python
2
3 from Pictar import *
4
5 the_pictar = Pictar()
6
7
8 """
9 if (os.path.isdir(target_dir) == False):
10 print "Error: The given directory, \"" + target_dir + "\", is invalid.\n"
11 sys.exit(FAILURE)
12 """
13
14
15
16 image_paths = the_pictar.GetItemPaths()
17
18 image_data = the_pictar.GetItemData(image_paths)
19
20 page_data = the_pictar.GetPageData(image_data)
21
22 outfile = the_pictar.WritePage(page_data)
23
24 the_pictar.LaunchBrowser(outfile)
25