diff --git a/gns3server/config.py b/gns3server/config.py index dc2fb80c..d0e592ea 100644 --- a/gns3server/config.py +++ b/gns3server/config.py @@ -47,7 +47,7 @@ class Config: if files and len(files): directory_name = os.path.dirname(files[0]) if not directory_name or directory_name == "": - files[0] = './' + files[0] + files[0] = os.path.dirname(os.path.abspath(files[0])) + os.path.sep + files[0] self._main_config_file = files[0] else: self._main_config_file = None