From 04b02171bb59b7f13fa18812b28991b52af738cb Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 25 Feb 2016 15:07:55 +0100 Subject: [PATCH] Support /etc/gns3/gns3_server.conf for the config It's better for a server deployment --- gns3server/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gns3server/config.py b/gns3server/config.py index 44336e71..a09a7eaa 100644 --- a/gns3server/config.py +++ b/gns3server/config.py @@ -75,7 +75,7 @@ class Config(object): # 2: $HOME/.config/GNS3.conf # 3: /etc/xdg/GNS3/gns3_server.conf # 4: /etc/xdg/GNS3.conf - # 5: server.conf in the current working directory + # 5: gns3_server.conf in the current working directory appname = "GNS3" home = os.path.expanduser("~") @@ -84,6 +84,7 @@ class Config(object): self._files = [os.path.join(os.getcwd(), filename), os.path.join(home, ".config", appname, filename), os.path.join(home, ".config", appname + ".conf"), + os.path.join("/etc/gns3", filename), os.path.join("/etc/xdg", appname, filename), os.path.join("/etc/xdg", appname + ".conf")]