from svgruler import SVGRuler
# the url map for the application
-urls = ( '/', 'index',
+urls = ( '/?', 'index',
'/ruler_([0-9\.]+)px_([0-9\.]+)([A-Za-z]+).(svg|png|jpg)', 'ruler_img',
'/show/(.*(svg|png|jpg))', 'show_ruler',
'/gallery(.*)', 'gallery',
'/delete/(\d+)', 'delete',
'/undelete/(\d+)', 'undelete')
-database = create_database("sqlite:yourule.db")
+database = create_database("sqlite:%s/db/yourule.db" %
+ os.path.dirname(__file__))
+
store = Store(database)
class Ruler(object):