Commit e0499e2f1e2ad7de006b224605b2adad3d038980
1 parent
7559b4df
Exists in
master
and in
6 other branches
FIX: vtkoutput.txt in log folder
Showing
2 changed files
with
5 additions
and
3 deletions
Show diff stats
invesalius/project.py
@@ -205,8 +205,9 @@ class Project(object): | @@ -205,8 +205,9 @@ class Project(object): | ||
205 | def OpenPlistProject(self, filename): | 205 | def OpenPlistProject(self, filename): |
206 | 206 | ||
207 | if not const.VTK_WARNING: | 207 | if not const.VTK_WARNING: |
208 | + log_path = os.path.join(const.LOG_FOLDER, 'vtkoutput.txt') | ||
208 | fow = vtk.vtkFileOutputWindow() | 209 | fow = vtk.vtkFileOutputWindow() |
209 | - fow.SetFileName('vtkoutput.txt') | 210 | + fow.SetFileName(log_path) |
210 | ow = vtk.vtkOutputWindow() | 211 | ow = vtk.vtkOutputWindow() |
211 | ow.SetInstance(fow) | 212 | ow.SetInstance(fow) |
212 | 213 |
invesalius/reader/dicom_reader.py
@@ -170,10 +170,11 @@ class ProgressDicomReader: | @@ -170,10 +170,11 @@ class ProgressDicomReader: | ||
170 | ps.Publisher().sendMessage("End dicom load", patient_list) | 170 | ps.Publisher().sendMessage("End dicom load", patient_list) |
171 | 171 | ||
172 | def GetDicomGroups(self, path, recursive): | 172 | def GetDicomGroups(self, path, recursive): |
173 | - | 173 | + |
174 | if not const.VTK_WARNING: | 174 | if not const.VTK_WARNING: |
175 | + log_path = os.path.join(const.LOG_FOLDER, 'vtkoutput.txt') | ||
175 | fow = vtk.vtkFileOutputWindow() | 176 | fow = vtk.vtkFileOutputWindow() |
176 | - fow.SetFileName('vtkoutput.txt') | 177 | + fow.SetFileName(log_path) |
177 | ow = vtk.vtkOutputWindow() | 178 | ow = vtk.vtkOutputWindow() |
178 | ow.SetInstance(fow) | 179 | ow.SetInstance(fow) |
179 | 180 |