contacts minor refactoring

This commit is contained in:
ingvar1995 2018-04-18 23:55:51 +03:00
parent 0ba1aadf70
commit dec4990d32
12 changed files with 204 additions and 188 deletions

View file

@ -13,7 +13,7 @@ class ProfileManager:
self._path = path
self._directory = os.path.basename(path)
# create /avatars if not exists:
directory = path + 'avatars'
directory = util.join_path(self._directory, 'avatars')
if not os.path.exists(directory):
os.makedirs(directory)