def get_tuple_coords(options, path):
 l = []
 (path, head) = split(path)
 head = head.split('.')[0]
 l.append(int(head))
 for i in range((options.zoom_level - 1)):
  (path, head) = split(path)
  l.append(int(head))
 l.reverse()
 return tuple(l)

def get_tuple_coords ( options , path ) : l = [ ] ( path , head ) = split ( path ) head = head . split ( '.' ) [ 0 ] l . append ( int ( head ) ) for i in range ( ( options . zoom_level - 1 ) ) : ( path , head ) = split ( path ) l . append ( int ( head ) ) l . reverse ( ) return tuple ( l )
extracts the "quadtree coordinates" from an image path .