# HG changeset patch # User Tero Marttila # Date 1264462621 -7200 # Node ID b5ae988c78b84a9749c15537ee207a270a5c1ae9 # Parent 1a6a6957197d4362312932791f553395dae2191c add .path attr to pypngtile.Image diff -r 1a6a6957197d -r b5ae988c78b8 python/pypngtile.pyx --- a/python/pypngtile.pyx Tue Jan 26 01:26:05 2010 +0200 +++ b/python/pypngtile.pyx Tue Jan 26 01:37:01 2010 +0200 @@ -97,10 +97,16 @@ cdef pt_image *image + # XXX: should really be a pt_image property... + cdef readonly object path + # open the pt_image def __cinit__ (self, char *path, int mode = 0) : cdef int err + + # store + self.path = path # open with nogil :