From c2be23a90234d37676e50bc6d12d5a19a57a5426 Mon Sep 17 00:00:00 2001 From: Anand Chitipothu Date: Wed, 5 May 2021 15:48:43 +0530 Subject: [PATCH] fix: fixed the pickle error on installing community --- community/hooks.py | 4 ++-- community/install.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/community/hooks.py b/community/hooks.py index ea17ba2f..bc97e3a2 100644 --- a/community/hooks.py +++ b/community/hooks.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals from . import __version__ as app_version -import os +from .install import APP_LOGO_URL app_name = "community" app_title = "Community" @@ -12,7 +12,7 @@ app_color = "grey" app_email = "jannat@erpnext.com" app_license = "AGPL" -app_logo_url = os.getenv("APP_LOGO_URL") or "/files/logo.png" +app_logo_url = APP_LOGO_URL # Includes in # ------------------ diff --git a/community/install.py b/community/install.py index f46a8a39..54fabede 100644 --- a/community/install.py +++ b/community/install.py @@ -3,6 +3,8 @@ import os import frappe +APP_LOGO_URL = os.getenv("APP_LOGO_URL") or "/files/logo.png" + def after_install(): set_app_name() disable_signup()