Move symbol static to /symbols

This commit is contained in:
Julien Duponchelle committed 2016-06-28 18:17:48 +02:00
1 parent c5fa699b9e
commit 5b4e668eb5
8 files changed
+67 -106

No files matched your search

+2 -1
View File
@@ -40,9 +40,10 @@ class Symbols:
'symbol_id': symbol_id,
'filename': file,
'builtin': True,
'url': '/static/builtin_symbols/' + file
})
self._symbols_path[symbol_id] = os.path.join(get_resource("symbols"), file)
symbols.sort(key=lambda x: x["filename"])
#TODO: support ~/GNS3/symbols directory
return symbols