fixed wrong avatars directory path
This commit is contained in:
parent
595c35a6b8
commit
0adb9c1e52
@ -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
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user