Selaa lähdekoodia

Merge d6b8a8cdb1 into 1944e59ae1

pull/455/merge
Erwin Van de Velde 1 kuukausi sitten
committed by GitHub
vanhempi
commit
72466fe85b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 muutettua tiedostoa jossa 6 lisäystä ja 2 poistoa
  1. +6
    -2
      diagrams/__init__.py

+ 6
- 2
diagrams/__init__.py Näytä tiedosto

@@ -430,8 +430,12 @@ class Node:
return uuid.uuid4().hex

def _load_icon(self):
basedir = Path(os.path.abspath(os.path.dirname(__file__)))
return os.path.join(basedir.parent, self._icon_dir, self._icon)
if self._icon_dir is None or not self._icon_dir.startswith(os.path.sep):
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:


Ladataan…
Peruuta
Tallenna