From 7e02ad9f0011b570d4a6c612f3deab960bc69047 Mon Sep 17 00:00:00 2001 From: quadrismegistus Date: Tue, 22 Sep 2020 06:50:46 +0100 Subject: [PATCH] ok --- komrade/app/screens/profile/profile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/komrade/app/screens/profile/profile.py b/komrade/app/screens/profile/profile.py index bc5c6a1..f64c9e0 100644 --- a/komrade/app/screens/profile/profile.py +++ b/komrade/app/screens/profile/profile.py @@ -18,7 +18,7 @@ from copy import copy,deepcopy from kivy.animation import Animation from main import MyLabel,COLOR_ICON from misc import * - +import os @@ -198,7 +198,9 @@ class ProfileScreen(BaseScreen): def make_profile_img(self,width,do_crop=True,circ_img=None,bw=False,circularize=True): + img_src = f'assets/avatars/{self.app.username}.png' + if not os.path.exists(img_src): img_src = 'assets/avatars/marx.png' circ_img = circularize_img(img_src,width,do_crop=do_crop,bw=bw,circularize=circularize)