mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-11-16 16:54:51 +02:00
parent
cc89099ea5
commit
103be13ba4
@ -236,8 +236,11 @@ class Node:
|
||||
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)
|
||||
try:
|
||||
if not val.startswith(":") and os.path.abspath(val):
|
||||
val = os.path.basename(val)
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
self._symbol = val
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user