Support symbol None (from old versions)

Fix #732
This commit is contained in:
Julien Duponchelle committed 2016-10-20 09:44:24 +02:00
1 parent 66a789672d
commit 43236746f9
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -204,6 +204,9 @@ class Node:
@symbol.setter
def symbol(self, val):
if val is None:
val = ":/symbols/computer.svg"
# No abs path, fix them (bug of 1.X)
if not val.startswith(":") and os.path.abspath(val):
val = os.path.basename(val)