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 - echo '/usr/local/lib/' | sudo tee -a /etc/ld.so.conf.d/locallib.conf
- sudo ldconfig - sudo ldconfig
- cd .. - cd ..
- cd ..
script: script:
- py.test tests/travis.py - py.test tests/travis.py
- py.test tests/tests.py - py.test tests/tests.py

View File

@ -13,7 +13,7 @@ class ProfileManager:
self._path = path self._path = path
self._directory = os.path.dirname(path) self._directory = os.path.dirname(path)
# create /avatars if not exists: # 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): if not os.path.exists(avatars_directory):
os.makedirs(avatars_directory) os.makedirs(avatars_directory)