Ensure icon cache directory exists

This commit is contained in:
Dan Williams 2007-04-10 15:14:19 -04:00
parent 8d4d87a081
commit 3e862d517c

View File

@ -28,6 +28,7 @@ class BuddyIconCache(object):
self._cachepath = os.path.join(ppath, "cache", "buddy-icons", "cache")
if not os.path.exists(self._cachepath):
os.makedirs(self._cachepath)
self._cache = {}
# md5 and server token of the last avatar uploaded
self._md5 = ''