mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-11-16 08:44:52 +02:00
Improved how the path to the config file is actually determined
This commit is contained in:
parent
3bd394b637
commit
7117b1fb65
@ -47,7 +47,7 @@ class Config:
|
|||||||
if files and len(files):
|
if files and len(files):
|
||||||
directory_name = os.path.dirname(files[0])
|
directory_name = os.path.dirname(files[0])
|
||||||
if not directory_name or directory_name == "":
|
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]
|
self._main_config_file = files[0]
|
||||||
else:
|
else:
|
||||||
self._main_config_file = None
|
self._main_config_file = None
|
||||||
|
Loading…
Reference in New Issue
Block a user