From 1e1cbaf68d0fc6afc3bd8036a8bbbce878cc1b73 Mon Sep 17 00:00:00 2001 From: MuhammadMouradG <50509521+MuhammadMouradG@users.noreply.github.com> Date: Fri, 18 Sep 2020 03:48:26 +0000 Subject: [PATCH] Update command.py --- src/core/toga/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/toga/command.py b/src/core/toga/command.py index 2a1e6ed304..72ce420a73 100644 --- a/src/core/toga/command.py +++ b/src/core/toga/command.py @@ -108,7 +108,7 @@ def icon(self, icon_or_name): if isinstance(icon_or_name, Icon) or icon_or_name is None: self._icon = icon_or_name else: - self._icon = Icon(os.getcwd() + "/" + icon_or_name) + self._icon = Icon(icon_or_name) if self._icon and self.factory: self._icon.bind(self.factory)