mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-26 16:58:28 +00:00
Fixes capture directory path.
This commit is contained in:
parent
d65617657c
commit
380c4d8211
@ -178,7 +178,7 @@ class Project:
|
|||||||
:returns: working directory
|
:returns: working directory
|
||||||
"""
|
"""
|
||||||
|
|
||||||
workdir = os.path.join(self._path, 'project-files', module_name)
|
workdir = os.path.join(self._path, "project-files", module_name)
|
||||||
try:
|
try:
|
||||||
os.makedirs(workdir, exist_ok=True)
|
os.makedirs(workdir, exist_ok=True)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
@ -194,7 +194,7 @@ class Project:
|
|||||||
:returns: VM working directory
|
:returns: VM working directory
|
||||||
"""
|
"""
|
||||||
|
|
||||||
workdir = os.path.join(self._path, 'project-files', vm.manager.module_name.lower(), vm.id)
|
workdir = os.path.join(self._path, "project-files", vm.manager.module_name.lower(), vm.id)
|
||||||
try:
|
try:
|
||||||
os.makedirs(workdir, exist_ok=True)
|
os.makedirs(workdir, exist_ok=True)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
@ -208,7 +208,7 @@ class Project:
|
|||||||
:returns: path to the directory
|
:returns: path to the directory
|
||||||
"""
|
"""
|
||||||
|
|
||||||
workdir = os.path.join(self._path, "captures")
|
workdir = os.path.join(self._path, "project-files", "captures")
|
||||||
try:
|
try:
|
||||||
os.makedirs(workdir, exist_ok=True)
|
os.makedirs(workdir, exist_ok=True)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user