#else: # if sys.platform != 'darwin': # _SplashScreen = wx.SplashScreen import invesalius.gui.language_dialog as lang_dlg import invesalius.i18n as i18n import invesalius.session as ses import invesalius.utils as utils FS_ENCODE = sys.getfilesystemencoding() if sys.platform == 'win32': from invesalius.expanduser import expand_user try: USER_DIR = expand_user() except: USER_DIR = utils.decode(os.path.expanduser('~'), FS_ENCODE) else: USER_DIR = utils.decode(os.path.expanduser('~'),FS_ENCODE) USER_INV_DIR = os.path.join(USER_DIR, u'.invesalius') USER_PRESET_DIR = os.path.join(USER_INV_DIR, u'presets') USER_RAYCASTING_PRESETS_DIRECTORY = os.path.join(USER_PRESET_DIR, u'raycasting') USER_LOG_DIR = os.path.join(USER_INV_DIR, u'logs') # ------------------------------------------------------------------ if sys.platform in ('linux2', 'linux', 'win32'): try: tmp_var = wx.GetXDisplay
_("Pelvis"): (450,50), _("Sinus"):(4000, 400), _("Vasculature - Hard"):(240,80), _("Vasculature - Soft"):(650,160), _("Contour"): (255, 127)} REDUCE_IMAGEDATA_QUALITY = 0 # PATHS FS_ENCODE = sys.getfilesystemencoding() if sys.platform == 'win32': from invesalius.expanduser import expand_user try: USER_DIR = expand_user() except: USER_DIR = utils.decode(os.path.expanduser('~'), FS_ENCODE) else: USER_DIR = utils.decode(os.path.expanduser('~'), FS_ENCODE) USER_INV_DIR = os.path.join(USER_DIR, u'.invesalius') USER_PRESET_DIR = os.path.join(USER_INV_DIR, u'presets') USER_LOG_DIR = os.path.join(USER_INV_DIR, u'logs') FILE_PATH = utils.decode(os.path.split(__file__)[0], FS_ENCODE) if hasattr(sys,"frozen") and (sys.frozen == "windows_exe"\ or sys.frozen == "console_exe"): abs_path = os.path.abspath(FILE_PATH, u'..', u'..', u'..') ICON_DIR = os.path.join(abs_path, u"icons")