icons and sticker window
This commit is contained in:
@ -74,12 +74,12 @@ def sticker_loader():
|
||||
"""
|
||||
:return dict of stickers
|
||||
"""
|
||||
result = {}
|
||||
result = []
|
||||
d = util.curr_directory() + '/stickers/'
|
||||
keys = [x[1] for x in os.walk(d)][0]
|
||||
for key in keys:
|
||||
path = d + key
|
||||
files = map(lambda f: f.endswith('.png'), os.listdir(path))
|
||||
if files:
|
||||
result[key] = files
|
||||
path = d + key + '/'
|
||||
files = filter(lambda f: f.endswith('.png'), os.listdir(path))
|
||||
files = map(lambda f: path + f, files)
|
||||
result.extend(files)
|
||||
return result
|
||||
|
Reference in New Issue
Block a user