From 380c4d82112a16e80ea585e5a4cc4f367638cc4d Mon Sep 17 00:00:00 2001 From: Jeremy Date: Wed, 18 Feb 2015 18:40:01 -0700 Subject: [PATCH] Fixes capture directory path. --- gns3server/modules/project.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gns3server/modules/project.py b/gns3server/modules/project.py index 973ce58e..6aa4bf6f 100644 --- a/gns3server/modules/project.py +++ b/gns3server/modules/project.py @@ -178,7 +178,7 @@ class Project: :returns: working directory """ - workdir = os.path.join(self._path, 'project-files', module_name) + workdir = os.path.join(self._path, "project-files", module_name) try: os.makedirs(workdir, exist_ok=True) except OSError as e: @@ -194,7 +194,7 @@ class Project: :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: os.makedirs(workdir, exist_ok=True) except OSError as e: @@ -208,7 +208,7 @@ class Project: :returns: path to the directory """ - workdir = os.path.join(self._path, "captures") + workdir = os.path.join(self._path, "project-files", "captures") try: os.makedirs(workdir, exist_ok=True) except OSError as e: