mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Use projects_path & images_path.
This commit is contained in:
1 parent
fb9f5d3c14
commit
182d2e465e
3 files changed
+8
-5
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user