Use projects_path & images_path.

This commit is contained in:
Jeremy
2015-02-23 17:08:34 -07:00
parent fb9f5d3c14
commit 182d2e465e
3 changed files with 8 additions and 5 deletions

View File

@ -91,7 +91,8 @@ class Project:
depending of the operating system
"""
path = os.path.normpath(os.path.expanduser("~/GNS3/projects"))
server_config = Config.instance().get_section_config("Server")
path = os.path.expanduser(server_config.get("projects_path", "~/GNS3/projects"))
try:
os.makedirs(path, exist_ok=True)
except OSError as e: