diff --git a/invesalius/project.py b/invesalius/project.py index 66b97f3..d574bae 100755 --- a/invesalius/project.py +++ b/invesalius/project.py @@ -205,8 +205,9 @@ class Project(object): def OpenPlistProject(self, filename): if not const.VTK_WARNING: + log_path = os.path.join(const.LOG_FOLDER, 'vtkoutput.txt') fow = vtk.vtkFileOutputWindow() - fow.SetFileName('vtkoutput.txt') + fow.SetFileName(log_path) ow = vtk.vtkOutputWindow() ow.SetInstance(fow) diff --git a/invesalius/reader/dicom_reader.py b/invesalius/reader/dicom_reader.py index 471d103..0f17b6d 100644 --- a/invesalius/reader/dicom_reader.py +++ b/invesalius/reader/dicom_reader.py @@ -170,10 +170,11 @@ class ProgressDicomReader: ps.Publisher().sendMessage("End dicom load", patient_list) def GetDicomGroups(self, path, recursive): - + if not const.VTK_WARNING: + log_path = os.path.join(const.LOG_FOLDER, 'vtkoutput.txt') fow = vtk.vtkFileOutputWindow() - fow.SetFileName('vtkoutput.txt') + fow.SetFileName(log_path) ow = vtk.vtkOutputWindow() ow.SetInstance(fow) -- libgit2 0.21.2