# constants. dbfile is the location of the csv
# comiccache is the location of the images
-comiccache = "/home/user/MyDocs/comics/"
-comics = {"xkcd":{"name":"xkcd","link":"http://xkcd.org/","start":666,"dbfile":"/home/user/.comicdb.xkcd.csv"},
- "sinfest":{"name":"Sinfest","link":"http://sinfest.com/","start":3400,"dbfile":"/home/user/.comicdb.sinfest.csv"}}
imagedir = "/home/user/comic-widget/images/"
+dbdir = "/home/user/comic-widget/db/"
+comiccache = "/home/user/MyDocs/comics/"
+comics = {"xkcd":{"name":"xkcd","link":"http://xkcd.org/","start":666,"dbfile":dbdir + ".comicdb.xkcd.csv"},
+ "sinfest":{"name":"Sinfest","link":"http://sinfest.com/","start":3400,"dbfile":dbdir + ".comicdb.sinfest.csv"}}
+
# handling of the comics
class ComicDb():
def __init__(self, comic):