def packDir(self, path='', recursive=True, autorotate=False, debug=False):

        Console.info('Packing sprites in: %s' % os.path.join(self.base, path))
        Console.indent()
        
        self.files = []
        self.addDir(path, recursive=recursive)
        Console.info('Found %d images' % len(self.files))

        if len(self.files) > 0:
            self.generate(path, autorotate, debug)
            
        Console.outdent()
Pack images inside a dir into sprite sheets
dataset/ETHPy150Open zynga/jasy/jasy/asset/SpritePacker.py/SpritePacker.packDir