mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Fix tests
This commit is contained in:
1 parent
a324459152
commit
43ca53a089
2 files changed
+3
-4
No files matched your search
@@ -296,8 +296,7 @@ class Node:
|
||||
|
||||
try:
|
||||
if not val.startswith(":") and os.path.isabs(val):
|
||||
server_config = Config.instance().get_section_config("Server")
|
||||
default_symbol_directory = os.path.expanduser(server_config.get("images_path", "~/GNS3/symbols"))
|
||||
default_symbol_directory = Config.instance().settings.Server.symbols_path
|
||||
if os.path.commonprefix([default_symbol_directory, val]) != default_symbol_directory:
|
||||
val = os.path.basename(val)
|
||||
except OSError:
|
||||
|
||||
Reference in new issue
Block a user