pull/455/merge
Erwin Van de Velde 3 weeks ago committed by GitHub
commit 0285a50335
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -431,8 +431,12 @@ class Node:
return uuid.uuid4().hex return uuid.uuid4().hex
def _load_icon(self): def _load_icon(self):
basedir = Path(os.path.abspath(os.path.dirname(__file__))) if self._icon_dir is None or not self._icon_dir.startswith(os.path.sep):
return os.path.join(basedir.parent, self._icon_dir, self._icon) basedir = Path(os.path.abspath(os.path.dirname(__file__)))
return os.path.join(basedir.parent, self._icon_dir, self._icon)
else:
return os.path.join(self._icon_dir, self._icon)
class Edge: class Edge:

Loading…
Cancel
Save