From 849cc868810add661a4185d9f4a4a5583528b6c7 Mon Sep 17 00:00:00 2001 From: paulojamorim Date: Fri, 3 Dec 2010 16:43:20 +0000 Subject: [PATCH] FIX: Fix problem unicode --- invesalius/reader/dicom_reader.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/invesalius/reader/dicom_reader.py b/invesalius/reader/dicom_reader.py index 55f9ca0..e33f2a8 100644 --- a/invesalius/reader/dicom_reader.py +++ b/invesalius/reader/dicom_reader.py @@ -20,6 +20,7 @@ import os import Queue import threading import tempfile +import sys from multiprocessing import cpu_count @@ -90,7 +91,10 @@ class LoadDicom:#(threading.Thread): def __init__(self, grouper, filepath): #threading.Thread.__init__(self) self.grouper = grouper - self.filepath = filepath + if sys.platform == 'win32': + self.filepath = filepath.encode(utils.get_system_encode()) + else: + self.filepath = filepath self.run() def run(self): -- libgit2 0.21.2