Commit e0499e2f1e2ad7de006b224605b2adad3d038980
1 parent
7559b4df
Exists in
master
and in
68 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 | 205 | def OpenPlistProject(self, filename): |
| 206 | 206 | |
| 207 | 207 | if not const.VTK_WARNING: |
| 208 | + log_path = os.path.join(const.LOG_FOLDER, 'vtkoutput.txt') | |
| 208 | 209 | fow = vtk.vtkFileOutputWindow() |
| 209 | - fow.SetFileName('vtkoutput.txt') | |
| 210 | + fow.SetFileName(log_path) | |
| 210 | 211 | ow = vtk.vtkOutputWindow() |
| 211 | 212 | ow.SetInstance(fow) |
| 212 | 213 | ... | ... |
invesalius/reader/dicom_reader.py
| ... | ... | @@ -170,10 +170,11 @@ class ProgressDicomReader: |
| 170 | 170 | ps.Publisher().sendMessage("End dicom load", patient_list) |
| 171 | 171 | |
| 172 | 172 | def GetDicomGroups(self, path, recursive): |
| 173 | - | |
| 173 | + | |
| 174 | 174 | if not const.VTK_WARNING: |
| 175 | + log_path = os.path.join(const.LOG_FOLDER, 'vtkoutput.txt') | |
| 175 | 176 | fow = vtk.vtkFileOutputWindow() |
| 176 | - fow.SetFileName('vtkoutput.txt') | |
| 177 | + fow.SetFileName(log_path) | |
| 177 | 178 | ow = vtk.vtkOutputWindow() |
| 178 | 179 | ow.SetInstance(fow) |
| 179 | 180 | ... | ... |