Use projects_path & images_path.

This commit is contained in:
Jeremy committed 2015-02-23 17:08:34 -07:00
1 parent fb9f5d3c14
commit 182d2e465e
3 files changed
+8 -5

No files matched your search

+2 -1
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: