mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 07:23:47 +02:00
Normalize symbol ID on Windows.
This commit is contained in:
parent
9f7f26700e
commit
e0813bfbe8
@ -66,7 +66,7 @@ class Symbols:
|
|||||||
for filename in files:
|
for filename in files:
|
||||||
if filename.startswith('.'):
|
if filename.startswith('.'):
|
||||||
continue
|
continue
|
||||||
symbol_file = posixpath.normpath(os.path.relpath(os.path.join(root, filename), get_resource("symbols")))
|
symbol_file = posixpath.normpath(os.path.relpath(os.path.join(root, filename), get_resource("symbols"))).replace('\\', '/')
|
||||||
symbol_id = ':/symbols/' + symbol_file
|
symbol_id = ':/symbols/' + symbol_file
|
||||||
symbols.append({'symbol_id': symbol_id,
|
symbols.append({'symbol_id': symbol_id,
|
||||||
'filename': symbol_file,
|
'filename': symbol_file,
|
||||||
@ -79,7 +79,7 @@ class Symbols:
|
|||||||
for filename in files:
|
for filename in files:
|
||||||
if filename.startswith('.'):
|
if filename.startswith('.'):
|
||||||
continue
|
continue
|
||||||
symbol_file = posixpath.normpath(os.path.relpath(os.path.join(root, filename), directory))
|
symbol_file = posixpath.normpath(os.path.relpath(os.path.join(root, filename), directory)).replace('\\', '/')
|
||||||
symbols.append({'symbol_id': symbol_file,
|
symbols.append({'symbol_id': symbol_file,
|
||||||
'filename': symbol_file,
|
'filename': symbol_file,
|
||||||
'builtin': False,})
|
'builtin': False,})
|
||||||
|
Loading…
Reference in New Issue
Block a user