mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
Fix server startup on windows
This commit is contained in:
parent
273a711459
commit
a6d085bf61
@ -67,7 +67,7 @@ class Controller:
|
||||
def load_appliances(self):
|
||||
self._appliance_templates = {}
|
||||
for file in os.listdir(get_resource('appliances')):
|
||||
with open(os.path.join(get_resource('appliances'), file)) as f:
|
||||
with open(os.path.join(get_resource('appliances'), file), 'r', encoding='utf-8') as f:
|
||||
appliance = ApplianceTemplate(None, json.load(f))
|
||||
if appliance.status != 'broken':
|
||||
self._appliance_templates[appliance.id] = appliance
|
||||
|
Loading…
Reference in New Issue
Block a user