Commit ef638c1f0d697d0ddc52457358e1192225e264c3
1 parent
87b12fec
Exists in
master
and in
10 other branches
FIX: Returned pseudo color list in slices
Showing
2 changed files
with
9 additions
and
2 deletions
Show diff stats
invesalius/constants.py
... | ... | @@ -328,8 +328,9 @@ if hasattr(sys,"frozen") and (sys.frozen == "windows_exe"\ |
328 | 328 | ICON_DIR = os.path.join(abs_path, "icons") |
329 | 329 | SAMPLE_DIR = os.path.join(FILE_PATH, 'samples') |
330 | 330 | DOC_DIR = os.path.join(FILE_PATH, 'docs') |
331 | - | |
332 | 331 | folder=RAYCASTING_PRESETS_DIRECTORY= os.path.join(abs_path, "presets", "raycasting") |
332 | + RAYCASTING_PRESETS_COLOR_DIRECTORY = os.path.join(abs_path, "presets", "raycasting", "color_list") | |
333 | + | |
333 | 334 | else: |
334 | 335 | ICON_DIR = os.path.abspath(os.path.join(FILE_PATH, '..', 'icons')) |
335 | 336 | SAMPLE_DIR = os.path.abspath(os.path.join(FILE_PATH,'..', 'samples')) |
... | ... | @@ -339,6 +340,12 @@ else: |
339 | 340 | "presets", |
340 | 341 | "raycasting")) |
341 | 342 | |
343 | + RAYCASTING_PRESETS_COLOR_DIRECTORY = os.path.abspath(os.path.join(".", | |
344 | + "presets", | |
345 | + "raycasting", | |
346 | + "color_list")) | |
347 | + | |
348 | + | |
342 | 349 | # MAC App |
343 | 350 | if not os.path.exists(ICON_DIR): |
344 | 351 | ICON_DIR = os.path.abspath(os.path.join(FILE_PATH, '..', '..', '..', '..', 'icons')) | ... | ... |
invesalius/presets.py
... | ... | @@ -169,7 +169,7 @@ class Presets(): |
169 | 169 | |
170 | 170 | |
171 | 171 | def get_wwwl_presets(): |
172 | - files = glob.glob(os.path.join('..', 'presets', 'raycasting', 'color_list', '*.plist')) | |
172 | + files = glob.glob(os.path.join(const.RAYCASTING_PRESETS_COLOR_DIRECTORY, '*.plist')) | |
173 | 173 | presets = {} |
174 | 174 | for f in files: |
175 | 175 | p = os.path.splitext(os.path.basename(f))[0] | ... | ... |