From 0adb9c1e5219513051ee480fbf3b267468798a43 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Sat, 30 Jun 2018 20:02:44 +0300 Subject: [PATCH] fixed wrong avatars directory path --- .travis.yml | 1 + toxygen/user_data/profile_manager.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 378e5e5..a4011e1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/toxygen/user_data/profile_manager.py b/toxygen/user_data/profile_manager.py index 3324fce..6643d68 100644 --- a/toxygen/user_data/profile_manager.py +++ b/toxygen/user_data/profile_manager.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)