mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 09:18:08 +00:00
Added workaround for #1690. Added venv/ to .gitignore
This commit is contained in:
parent
2fa2c715f5
commit
3bd394b637
1
.gitignore
vendored
1
.gitignore
vendored
@ -58,4 +58,5 @@ startup.vpcs
|
|||||||
|
|
||||||
# Virtualenv
|
# Virtualenv
|
||||||
env
|
env
|
||||||
|
venv
|
||||||
.ropeproject
|
.ropeproject
|
||||||
|
@ -45,6 +45,9 @@ class Config:
|
|||||||
self._files = files
|
self._files = files
|
||||||
self._profile = profile
|
self._profile = profile
|
||||||
if files and len(files):
|
if files and len(files):
|
||||||
|
directory_name = os.path.dirname(files[0])
|
||||||
|
if not directory_name or directory_name == "":
|
||||||
|
files[0] = './' + 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