mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 09:18:08 +00:00
Ensure in test we didn't load the local configuration
This commit is contained in:
parent
36d5049c61
commit
bd4b6396a8
@ -45,7 +45,9 @@ class Config(object):
|
|||||||
# Monitor configuration files for changes
|
# Monitor configuration files for changes
|
||||||
self._watched_files = {}
|
self._watched_files = {}
|
||||||
|
|
||||||
if sys.platform.startswith("win"):
|
if hasattr(sys, "_called_from_test"):
|
||||||
|
self._files = files
|
||||||
|
elif sys.platform.startswith("win"):
|
||||||
|
|
||||||
appname = "GNS3"
|
appname = "GNS3"
|
||||||
|
|
||||||
@ -87,6 +89,8 @@ class Config(object):
|
|||||||
os.path.join("/etc/xdg", appname + ".conf"),
|
os.path.join("/etc/xdg", appname + ".conf"),
|
||||||
filename]
|
filename]
|
||||||
|
|
||||||
|
if self._files is None:
|
||||||
|
self._files = []
|
||||||
self.clear()
|
self.clear()
|
||||||
self._watch_config_file()
|
self._watch_config_file()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user