Support for auto open projects

Fix #1418
This commit is contained in:
Julien Duponchelle committed 2016-08-16 16:04:20 +02:00
1 parent 12735ff36e
commit ac085126fc
4 files changed
+11 -3

No files matched your search

+5 -1
View File
@@ -99,7 +99,11 @@ class Controller:
for c in data["computes"]:
yield from self.add_compute(**c)
# Preload the list of projects from disk
@asyncio.coroutine
def load_projects(self):
"""
Preload the list of projects from disk
"""
server_config = Config.instance().get_section_config("Server")
projects_path = os.path.expanduser(server_config.get("projects_path", "~/GNS3/projects"))
os.makedirs(projects_path, exist_ok=True)