mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-29 02:08:10 +00:00
Merge pull request #1691 from JCDraaijer/master
Added workaround for #1690
This commit is contained in:
commit
5e4e5c741b
1
.gitignore
vendored
1
.gitignore
vendored
@ -58,4 +58,5 @@ startup.vpcs
|
||||
|
||||
# Virtualenv
|
||||
env
|
||||
venv
|
||||
.ropeproject
|
||||
|
@ -45,6 +45,9 @@ class Config:
|
||||
self._files = files
|
||||
self._profile = profile
|
||||
if files and len(files):
|
||||
directory_name = os.path.dirname(files[0])
|
||||
if not directory_name or directory_name == "":
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user