fixed wrong avatars directory path

This commit is contained in:
ingvar1995 2018-06-30 20:02:44 +03:00
parent 595c35a6b8
commit 0adb9c1e52
2 changed files with 2 additions and 1 deletions

View file

@ -47,6 +47,7 @@ before_script:
- echo '/usr/local/lib/' | sudo tee -a /etc/ld.so.conf.d/locallib.conf
- sudo ldconfig
- cd ..
- cd ..
script:
- py.test tests/travis.py
- py.test tests/tests.py

View file

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