Commit 63ad0eb302adb094c6616dea887dcd573b456a29

Authored by tfmoraes
1 parent 4aeae2b9

FIX: Using absolute path in constants to indicate the raycasting presets

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
invesalius/constants.py
@@ -167,7 +167,9 @@ REDUCE_IMAGEDATA_QUALITY = 1 @@ -167,7 +167,9 @@ REDUCE_IMAGEDATA_QUALITY = 1
167 # if 1, use vtkVolumeRaycastMapper, if 0, use vtkFixedPointVolumeRayCastMapper 167 # if 1, use vtkVolumeRaycastMapper, if 0, use vtkFixedPointVolumeRayCastMapper
168 TYPE_RAYCASTING_MAPPER = 0 168 TYPE_RAYCASTING_MAPPER = 0
169 169
170 -folder=RAYCASTING_PRESETS_DIRECTORY= os.path.join("..", "presets", "raycasting") 170 +folder=RAYCASTING_PRESETS_DIRECTORY= os.path.abspath(os.path.join("..",
  171 + "presets",
  172 + "raycasting"))
171 173
172 RAYCASTING_TYPES = [filename.split(".")[0] for filename in 174 RAYCASTING_TYPES = [filename.split(".")[0] for filename in
173 os.listdir(folder) if 175 os.listdir(folder) if