bug fixes
This commit is contained in:
parent
fd80e1f142
commit
0cf459e3a9
4 changed files with 7 additions and 6 deletions
|
|
@ -172,6 +172,10 @@ class ProfileHelper(object):
|
|||
path = path.decode(locale.getpreferredencoding())
|
||||
ProfileHelper._path = path + name + '.tox'
|
||||
ProfileHelper._directory = path
|
||||
# create /avatars if not exists:
|
||||
directory = path + 'avatars'
|
||||
if not os.path.exists(directory):
|
||||
os.makedirs(directory)
|
||||
with open(ProfileHelper._path, 'rb') as fl:
|
||||
data = fl.read()
|
||||
if data:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue