From be135a79322227c9d824017dc2a3b28f7786a48f Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Mon, 13 Jul 2020 11:18:58 +0200 Subject: [PATCH] added workspace_name attribute to clockify --- pype/modules/clockify/clockify.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pype/modules/clockify/clockify.py b/pype/modules/clockify/clockify.py index 2ab22702c1..02b322c1c6 100644 --- a/pype/modules/clockify/clockify.py +++ b/pype/modules/clockify/clockify.py @@ -8,7 +8,14 @@ from . import ClockifySettings, ClockifyAPI, MessageWidget class ClockifyModule: + workspace_name = None + def __init__(self, main_parent=None, parent=None): + if not self.workspace_name: + raise Exception("Clockify Workspace is not set in config.") + + os.environ["CLOCKIFY_WORKSPACE"] = self.workspace_name + self.log = Logger().get_logger(self.__class__.__name__, "PypeTray") self.main_parent = main_parent